Quote:
Originally Posted by ralfmb
ApplicationManager manager = ApplicationManager.getApplicationManager();
if (manager.inStartup() == true) {
// app is in startup
final Bitmap icon = Bitmap.getBitmapResource("normal_icon.png");
final Bitmap iconover = Bitmap.getBitmapResource("over_icon.png");
HomeScreen.updateIcon(icon, 0);
HomeScreen.setRolloverIcon(iconover, 0);
System.exit(0);
}
Additionally, you have to set 'Auto-run on startup' tick, no arguments to be passed to main!
That works!
regards,
Ralf
|
I just thought I would throw in a note that this worked for me as well. Make sure you restart your device (battery pull) or simulator while testing as it doesn't appear to be working until you reset.