Example #1
0
  public FreemapMainScreen() {
    super(DEFAULT_MENU);

    m_this = this;
    int size = 20;
    m_contextMenuItems = new Vector(size);
    m_MiniMenuItems = new Vector(size);
    for (int i = 0; i < size; ++i) {
      m_contextMenuItems.addElement(null);
      m_MiniMenuItems.addElement(null);
    }
    m_initial_locale = Locale.getDefaultInputForSystem();

    waiting_dialog =
        new Dialog(
            "please wait...",
            new String[] {"Hide"},
            null,
            Dialog.OK,
            Bitmap.getPredefinedBitmap(Bitmap.HOURGLASS));

    isLandscapeScreen = getVisibleWidth() > getVisibleHeight() ? 1 : 0;
  }
Example #2
0
 public void setLocale(String text) {
   if (text.length() > 0) Locale.setDefaultInput(Locale.get(text));
   else Locale.setDefaultInput(Locale.getDefault());
 }
Example #3
0
 public static void revertToInitialLocale() {
   Locale.setDefaultInput(m_initial_locale);
 }