Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Developer
Posts: 86
Registered: ‎12-09-2008
My Device: Not Specified
Accepted Solution

Autostart An Application

hello everyone,

i try to develop an application for the blackberry storm which shall start automatically when the device starts.

After setting the correct properties in the eclipse-plugin (selecting Auto-run on startup and System module, and creating another project for the alternate entry point and there selecting "alternate cldc application entry point" and setting an argument for the main-method) everything runs fine in the simulator (the application starts automatically). Strangely, on a real device (blackberry storm) the application does not start. Neither manually using the power off button nor removing the battery (and booting the device again) got the application getting started.

 

Any ideas?

 

Thanks in advance!
Developer
Posts: 86
Registered: ‎12-09-2008
My Device: Not Specified

Re: Autostart An Application

sorry, i forgot to mention that my application is also signed.
BlackBerry Development Advisor
Posts: 15,784
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: Autostart An Application

There are a couple of ways you can check for errors.  If you have access to the BlackBerry Storm you can connect it to your PC via USB and debug the application using the BlackBerry JDE Plug-in for Eclipse.

 

If you don't have direct access to it you can check the event log. You can use javaloader.exe (included with the BlackBerry JDE and BlackBerry JDE Plug-in for Eclipse) to copy the event log contents using the following command:

 

javaloader -u eventlog > yourLogFile.txt

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Developer
Posts: 86
Registered: ‎12-09-2008
My Device: Not Specified

Re: Autostart An Application

Problem was the app tried to start, but the device has not completed its own startup, so I had to make sure my application waited as long as the device itself completed its startup (inStartup), and only then make the startup.

New Developer
Posts: 6
Registered: ‎01-07-2009
My Device: Not Specified

Re: Autostart An Application

can u please  tell how did u made the application to wait as long as the startup takes place ,i m having a similar problem in my app.
New Developer
Posts: 6
Registered: ‎01-07-2009
My Device: Not Specified

Re: Autostart An Application

my application is workings fine when is switch off the application,but when i pull the batterry then there is no auto start
Highlighted
Developer
Posts: 86
Registered: ‎12-09-2008
My Device: Not Specified

Re: Autostart An Application

You may use the above mentioned method 'inStartup()' in a loop.

ApplicationManager app = ApplicationManager.getApplicationManager(); boolean keepGoing = true; while (keepGoing) { if (app.inStartup()) { Thread.sleep(1000); } else { keepGoing = false; } } pushScreen(screen);

 


 

New Developer
Posts: 6
Registered: ‎01-07-2009
My Device: Not Specified

Re: Autostart An Application

 Thank you
Developer
Posts: 86
Registered: ‎12-09-2008
My Device: Not Specified

Re: Autostart An Application

Kudos please! Smiley Wink
Developer
Posts: 79
Registered: ‎02-19-2009
My Device: Not Specified

Re: Autostart An Application

I used the code and it worked with my application when I used the autostart tie under level 7.