10-21-2008 01:44 PM
There was a article in the knowledge base regarding "Creating an application with an alternate entry point". In the example, the application will start on device boot and then run in the background and will only foreground itself when the icon on the ribbon is clicked on (some arguments will be passed to main(), and that's how the application differentiate between a (auto start & run in background) and (foreground itself)).
here is my code snippet:
public static void main(String args)
if(args != null && args.length > 0 && args.endsWith("gui"))
//Entered by selecting the application icon on the ribbon
//Start the GUI
Application app = new Application();
//Entered through the alternate application entry point
//Enable PIMListener on startup if the setup has completed.
Logger.log(DEBUG, "The set up has completed therefore we can start the background listener");
My question is that, is there a way for me to pass an arguement to the app when i am using ApplicationManager.runApplication(ApplicationDescr
10-21-2008 02:18 PM
We pass arguments in the autostartup case such as
if ( args.length > 0 && args.equals("autostartup"))
so we can single out the auto start case. Everything else is then a launch from the ribbon.
10-21-2008 03:41 PM