BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 04-10-2006, 05:31 PM   #1
young_developer
New Member
 
Join Date: Apr 2006
Model: 7290
Posts: 2
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
young_developer
New Member
 
Join Date: Apr 2006
Model: 7290
Posts: 2
Default

Any help?
Offline  
Closed Thread



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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


ONITY MOTHERBOARD - HT24 HT28 HT Trillium. MagStripe & RFID - EMS-1  picture

ONITY MOTHERBOARD - HT24 HT28 HT Trillium. MagStripe & RFID - EMS-1

$17.50



Used & Tested 195N2008 195N2131 2800 2900 Motherboard picture

Used & Tested 195N2008 195N2131 2800 2900 Motherboard

$194.90



USED Intel DP43TF P43 Motherboard picture

USED Intel DP43TF P43 Motherboard

$218.64



Used & Tested IEI IMBA-8650GR-R22-NOCB-BULK IMBA-8650GR Motherboard picture

Used & Tested IEI IMBA-8650GR-R22-NOCB-BULK IMBA-8650GR Motherboard

$380.88



4100U Simplex CPU Motherboard Assy 566-227 637-158 **UNTESTED** picture

4100U Simplex CPU Motherboard Assy 566-227 637-158 **UNTESTED**

$179.96



Used & Tested IEI SSC-5X86HVGA REV.1.8 Industrial Motherboard       picture

Used & Tested IEI SSC-5X86HVGA REV.1.8 Industrial Motherboard

$299.18







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