BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 04-10-2006, 05:31 PM   #1 (permalink)
New Member
 
Join Date: Apr 2006
Model: 7290
Posts: 2
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Displaying progress bar while downloading content

Please Login to Remove!

Hi,
I am creating an application that downloads XML content and parse it. Now I want to add progress bar to the application while it is downloading content. I am adding a screen with gauge field and starting a thread for downloading.
As soon as download is complete I remove the progress bar screen and add another screen to display downloaded data. Following code wait for download to complete and then display the downloaded data.
If I move "theApp.enterEventDispatcher() " above "downloadThread.start()" line then it displays progress bar only and stop processing following events.

Code:
 theApp.pushScreen(theApp.getGaugeScreen());
            theApp.downloadThread.start();    
            while(theApp.downloadThread.isAlive()) {
             // Some code
            }

            theApp.popScreen(theApp.getGaugeScreen());            
            theApp.pushScreen(theApp.getDisplayController().getMainScreen());

            theApp.enterEventDispatcher();
What is correct way to display progress bar and do other process? I am not able to find good example code to help me. I am new to J2ME.
Thanks
Offline  
Old 04-12-2006, 02:41 PM   #2 (permalink)
New Member
 
Join Date: Apr 2006
Model: 7290
Posts: 2
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Any help?
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

WHELEN 295SL100 PA AMPLIFIER 200 WATT SIREN W/ MIC HORN RADIO REBROADCAST
$50.0
WHELEN 295SL100 PA AMPLIFIER 200 WATT SIREN W/ MIC HORN RADIO REBROADCAST picture10 x MAB311 TESLA Vintage Operational Amplifier ( LM311H ) IC Metal Case
$7.89
10 x MAB311 TESLA Vintage Operational Amplifier ( LM311H )  IC Metal Case pictureIDEAL Tone Generator and Amplifier Probe Kit 33-864
$104.14
IDEAL Tone Generator and Amplifier Probe Kit 33-864 pictureNEW GAI-TRONICS 7245-001 PAGE/PARTY SYSTEM AMPLIFIER ENCLOSURE
$28.95
NEW GAI-TRONICS 7245-001 PAGE/PARTY SYSTEM AMPLIFIER ENCLOSURE pictureREFU ELECTRONIK/SIEMENS TV6221/6SE4800-0KS50 SIMOVERT 3-CH ISO AMPLIFIER MODULE
$24.95
REFU ELECTRONIK/SIEMENS TV6221/6SE4800-0KS50 SIMOVERT 3-CH ISO AMPLIFIER MODULE picture






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