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
Contributor
Posts: 18
Registered: ‎03-02-2012
My Device: BlackBerry 9300
My Carrier: Yoigo

Auto-run on startup

Hi all,

 

I want to create an autorun application, then i check option of  "Auto-run on startup" on Application Descriptor and it works. But how can I discern the case of auto-run and the case of user starts the application?Is there a default argument for the first case?Can i do it without create an alternaty entry point?

 

Thanks in advance,

 

Regards.

Highlighted
Developer
Posts: 19,631
Registered: ‎07-14-2008
My Device: Not Specified

Re: Auto-run on startup

"Can i do it without create an alternaty entry point?"

 

Not and be 100% sure.  YOu might be able to get away with testing inStartup() - see this link:

http://supportforums.blackberry.com/t5/Java-Development/Write-safe-initialization-code/ta-p/444795

 

But the accepted practice is to use an alternate entry.