View Single Post
Old 11-03-2006, 11:55 PM   #8
Californium
Knows Where the Search Button Is
 
Join Date: Aug 2006
Model: 8300
Carrier: Cingular
Posts: 35
Default

I'm trying to follow the guide myself but I'm wondering about how you can set the rollover icon and start the program without having two application icons on the home screen.


The guide mentions

Code:
public static void main(String[] args) {
     if ( args != null && args.length > 0 && args[0].equals("gui") ){
          // code to initialize the app
          theApp.enterEventDispatcher();
     } else {
          // code to launch the background thread }
     }
}

In order to pass the "gui" argument, another project with a CLDC alternate entry is needed. However, this results with two application icons on the home screen. One for the normal program and another for the alternate entry program.

If I set the main program as a system module to hide it, is there a way to set the rollover icon for the alternate entry program? Thanks.



EDIT: nvm, just had to use HomeScreen.setRolloverIcon(icon, 1);

Last edited by Californium; 11-04-2006 at 12:00 AM..
Offline   Reply With Quote