View Single Post
Old 07-28-2008, 01:22 AM   #17
7100simpleisbetter
Talking BlackBerry Encyclopedia
 
7100simpleisbetter's Avatar
 
Join Date: Mar 2005
Model: 8120
PIN: Cushion
Carrier: TMobile
Posts: 355
Default

Quote:
Originally Posted by ralfmb View Post
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.
Offline   Reply With Quote