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
New Developer
Posts: 4
Registered: ‎11-14-2008
My Device: Not Specified

how to build auto-startup application on BB JDE?

Hi Everyone,
I want to develop a auto-startup application for BB by using BB JDE. I checked PhoneAPIDemo project, it has two projects, first one is general one, I could build it and run it on BB Device, but developer guide says the auto-startup project is special for auto-startup application, I checked it,  but I don't how to make it work?

Can some one help me?

Thanks in advanced!
Highlighted
Developer
Posts: 50
Registered: ‎07-17-2008
My Device: 8310

Re: how to build auto-startup application on BB JDE?

Hi Steven,

 

You can use one project.

 

1.In JDE's project settings, check "Auto-run on startup"

2. In main(String[] args) method,check if app is in startup mode.

 

if (ApplicationManager.getApplicationManager().inStartup()){

// app is auto-run

} else {

// app is run from home screen

}

 

William

William

EasyDialer -- Calling card dialer, Google Voice Dialer, Conference Call dialer! Relieve the pain of dialing lengthy numbers...
----------------------------------------
If you love it, please let friends know.
If you hate it, please let me know.

New Developer
Posts: 4
Registered: ‎11-14-2008
My Device: Not Specified

Re: how to build auto-startup application on BB JDE?

Hi William,

Does this way can make this application auto-startup and robbin? I need it robbin, because sometimes user will change their settings from UI.

 

Thanks in advanced!

Developer
Posts: 50
Registered: ‎07-17-2008
My Device: 8310

Re: how to build auto-startup application on BB JDE?

if your app doesn't exit during starup:

enter app from ribbon will call Application.activate(), there you can check inStarup() again.

 

if you app exits during starup.

enter app from ribbon will call else block in main().

 

 

 

William

EasyDialer -- Calling card dialer, Google Voice Dialer, Conference Call dialer! Relieve the pain of dialing lengthy numbers...
----------------------------------------
If you love it, please let friends know.
If you hate it, please let me know.

New Developer
Posts: 4
Registered: ‎11-14-2008
My Device: Not Specified

Re: how to build auto-startup application on BB JDE?

Hi william,

Thanks for your reply. I tried the way you told me. After I install the application, there is no robbin for my application.

 

There is something wrong I did?

 

 

Thanks in advanced!

Developer
Posts: 50
Registered: ‎07-17-2008
My Device: 8310

Re: how to build auto-startup application on BB JDE?

Ribbon icon or not is not related to auto-startup. not to my code either.

 

There should be a default ribbon at least. You'd better check developer guide for how to show app icon on ribbon.

 

William

William

EasyDialer -- Calling card dialer, Google Voice Dialer, Conference Call dialer! Relieve the pain of dialing lengthy numbers...
----------------------------------------
If you love it, please let friends know.
If you hate it, please let me know.

New Developer
Posts: 4
Registered: ‎11-14-2008
My Device: Not Specified

Re: how to build auto-startup application on BB JDE?

Hi William,

Do u know the way how to check which application is running on BB Device, like windows mobile and Nokia devices? I want to check if my application is running or not.

 

 

Thanks again.

Developer
Posts: 50
Registered: ‎07-17-2008
My Device: 8310

Re: how to build auto-startup application on BB JDE?

Manual check:

 

ALT + ESCAPE to switch between running applications.

 

check with code:

 

Please check ApplicationManager, ApplicationDescriptor in API doc.

 

BTW, if you think this is not related the thread topic, create a new thread pleaese.

 

William

William

EasyDialer -- Calling card dialer, Google Voice Dialer, Conference Call dialer! Relieve the pain of dialing lengthy numbers...
----------------------------------------
If you love it, please let friends know.
If you hate it, please let me know.