public boolean containsFeature(String feature) {
   LogUtil.outMessage("Features present: " + (features != null));
   if (features != null) {
     for (int c = 0; c < features.size(); c++) {
       LogUtil.outMessage((String) features.elementAt(c));
       if (((String) features.elementAt(c)).equals(feature)) {
         return true;
       }
     }
   }
   return false;
 }
Exemple #2
0
 public void startApp() {
   LogUtil.outMessage("startApp invoked");
   /** Core * */
   version = getAppProperty("MIDlet-Version");
   type = getAppProperty("Type");
   build = getAppProperty("Build");
   /** Main * */
   midletMain = this;
   /** Logger for debugging * */
   LogUtil.initLogger(true, false, "92.36.93.99", 2000, false, "");
   /** Initialize localization support * */
   Localization.initLocalizationSupport();
   /** GUI* */
   screen = new Screen(this);
   /** Loading storage data * */
   Storage.init();
   Storage.load();
   /** Loading settings * */
   Settings.loadAll();
   /** Loading icons * */
   Splitter.splitImage(Settings.IMG_CHAT);
   Splitter.splitImage(Settings.IMG_STATUS);
   Splitter.splitImage(Settings.IMG_SUBSCRIPTION);
   /** Loading theme * */
   Theme.checkForUpSize();
   int[] data = Theme.loadTheme(Settings.themeOfflineResPath);
   if (data != null) {
     Theme.applyData(data);
   }
   /** GUI * */
   mainFrame = new MainFrame();
   chatFrame = new ChatFrame();
   roomsFrame = null;
   /** Frames chain * */
   mainFrame.s_nextWindow = chatFrame;
   chatFrame.s_prevWindow = mainFrame;
   /** Setting up active window * */
   screen.activeWindow = mainFrame;
   /** Showing * */
   screen.show();
   /** Checking for main frame object * */
   if (mainFrame.getGObject().equals(mainFrame.blank)) {
     /** Showing warning * */
     Handler.showWarning("TEST_VERSION");
   }
 }
Exemple #3
0
 public void destroyApp(boolean unconditional) {
   LogUtil.outMessage("destroyApp invoked");
 }
Exemple #4
0
 public void pauseApp() {
   LogUtil.outMessage("pauseApp invoked");
   notifyPaused();
 }