BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 07-21-2009, 12:15 PM   #1 (permalink)
New Member
 
Join Date: Jul 2009
Model: 9500
PIN: N/A
Carrier: student
Posts: 2
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default How To Add PROGRESS BAR ???!!!

Please Login to Remove!

Hello developers. I was searching for the solution but i didn't found what i want. I am new in bb development.I hope someone will help me.



Here is my problem. I have a menu -screen with buttons. When i click the button it starts newScreen, but it takes some time to show because newScreen is parsing xml. So i want to add progress bar which just show label Loading.. or Clock picture. I want know how to do it. I should start new thread? put the progress bar into newScreen constructor or how to do it? If someone know solution please answer. Example code will be the best way. Thanks a lot for replays.



For better understanding:

-----------------------------------------------------------------------------------------------

in menu, when i push button,i start new screen this way:



UiApplication.getUiApplication().pushScreen(new newScreen());

-------------------------------------------------------------------------------------------------

newScreen constructor

class newScreen extends MainScreen{

....

public newScreen(){



super();



// parsing xml here





}

}

-----------------------------------------------------------------------
Offline  
Old 07-21-2009, 12:25 PM   #2 (permalink)
New Member
 
Join Date: Jul 2009
Model: 8300
PIN: N/A
Carrier: VZ
Posts: 13
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Get the parsing of the XML out of the ctor and into a thread. I just replied to another question with how to set that up.

new Dialog() hides dialog box behind screen? :(

Last edited by DeveloperDave : 07-21-2009 at 12:26 PM.
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

LOT OF 3 OEM Dell printer TONERS FOR 3110CN/3115CN CT350448 CT350449 CT350450
$269.99
LOT OF 3 OEM Dell printer TONERS FOR 3110CN/3115CN CT350448 CT350449 CT350450 pictureOEM Dell Imaging Drum Kit 1320Cn 2130Cn 2135Cn 2150Cn 2150Cdn 2155Cn NEW SEALED
$99.99
OEM Dell Imaging Drum Kit 1320Cn 2130Cn 2135Cn 2150Cn 2150Cdn 2155Cn NEW SEALED picture ****** NEW OEM Genuine Dell PowerConnect 2608 8 port ethernet switch **********
$16.99
 ****** NEW OEM Genuine Dell PowerConnect 2608 8 port ethernet switch ********** pictureDELL 725-10263 / 331-1310 / KT74N Lamp manufactured by DELL
$217.54
DELL 725-10263 / 331-1310 / KT74N Lamp manufactured by DELL pictureDell OEM 3010 series 4 Color Toner Set CMYK, JH565, TH204, XH005, WH006 - New
$199.99
Dell OEM 3010 series 4 Color Toner Set CMYK, JH565, TH204, XH005, WH006 - New picture






Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.