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
dinu_hasith
Posts: 15
Registered: ‎10-23-2008
My Device: Not Specified
Accepted Solution

how to display splash screen while doing background task

[ Edited ]

Hi,

I've an application that gets images from a server and displays them. what i want to do is to display a loading screen while the images are downloading, and go to another screen when the downloading completes. is this possible?

 

 

thanks

dinu

Message Edited by dinu_hasith on 10-23-2008 09:25 PM
Please use plain text.
Administrator
MSohm
Posts: 14,310
Registered: ‎07-09-2008
My Device: BlackBerry Z30, BlackBerry PlayBook
My Carrier: Bell

Re: how to display splash screen while doing background task

[ Edited ]

Yes, this is possible.  You can use a PopupScreen to do this.  Please have a look at the JavaDocs for Dialog, Status and PopupScreen for some examples of classes you can use to display a "please wait" type of screen.

 

Once you download has finished, you can close the screen and push another onto the stack.

 

Please make a note of the following if you are trying to manipulate the active UI from your download thread.

 

How to - Update a screen on the Main Event Thread
Article Number: DB-00136

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

Message Edited by MSohm on 10-23-2008 02:07 PM
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
Please use plain text.
Developer
dinu_hasith
Posts: 15
Registered: ‎10-23-2008
My Device: Not Specified

Re: how to display splash screen while doing background task

thanks Mark!
Please use plain text.