public static long RS_ID = 0x837b99e982d67bdfL; HomeScreen.updateIcon(bitmap); RuntimeStore rs = RuntimeStore.getRuntimeStore(); rs.put(ClassName.RS_ID, new Integer(1));
public static void main( String[] args ) { if( args.length > 0 && args[0].equals( "autostartup" ) ) { IconTest iconTest = new IconTest(); ............. iconTest.enterEventDispatcher(); } else { // Start a new app instance for GUI operations. IconTest iconTest = new IconTest(); iconTest.showGui(); } } private void showGui() { RuntimeStore rs = RuntimeStore.getRuntimeStore(); int appIconState = rs.get(ClassName.RS_ID); if (appIconState == 1) //updated app. icon { Screen2 scr2 = new Screen2(); pushScreen(scr2); } else //old app. icon { Screen1 scr1 = new Screen1(); pushScreen(scr1); } enterEventDispatcher(); }
Last edited by Shreyas; 11-11-09 at 11:57 PM.