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: 13
Registered: ‎09-29-2008
My Device: Not Specified
Accepted Solution

Showing a dialog when opening an application

Hi there

 

I need to know is there any way for me to show a Dialog when the user opens up my application?

There would be an error when placing the Dialog code in the constructor.

Does any of you have any sample codes for this?

 

Thanks in advance.

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

Re: Showing a dialog when opening an application

I believe that by extracting the appropriate bits from the following three KB articles, you should have enough information to be able to do this for yourself.

 

How To - Display a GUI when the BlackBerry device starts up
Article Number: DB-00539

http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800620/How_To_...

This talks about displaying a GUI at system startup but the concepts are the same for app startup

 

How To - Create a splash screen
Article Number: DB-00119

http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800505/800256/...

You may not need this if you want to display a Dialog.

 

How to - Detect system availability on startup 
Article Number: DB-00642

http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800901/How_to_-_Detec...

This reinforces points made in the other KB articles.