BlackBerry Forums Support Community
              

Closed Thread
 
LinkBack Thread Tools
Old 07-09-2008, 02:53 PM   #1 (permalink)
Knows Where the Search Button Is
 
Join Date: Oct 2005
Model: 7250
Carrier: ATT
Posts: 20
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default PopupScreen as a status screen

Please Login to Remove!

I want to create a popup screen that has a label "Processing" and pushes some data out to the network and closes after that. I can create the screen, but where do I put the processing code? (Note this is not a background operation, it needs to hold up the UI while it is working)

Thanks for the help!
Offline  
Old 07-10-2008, 03:23 AM   #2 (permalink)
CrackBerry Addict
 
Join Date: Apr 2005
Location: hamburg, germany
Model: 8900
Carrier: o2
Posts: 838
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

all networking should be done in a background operation. use a callback to inform your app that it can undisplay the popup screen.
__________________
java developer, Devinto, hamburg/germany
Offline  
Old 07-10-2008, 07:01 AM   #3 (permalink)
Knows Where the Search Button Is
 
Join Date: Oct 2005
Model: 7250
Carrier: ATT
Posts: 20
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Simon,
Can you point me at an example?
Thanks!
Offline  
Old 07-10-2008, 07:48 AM   #4 (permalink)
CrackBerry Addict
 
Join Date: Apr 2005
Location: hamburg, germany
Model: 8900
Carrier: o2
Posts: 838
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

java callback pattern
(google)

show a progressscreen and start the network thread.
when your networking thread is done it notifies your application which can undisplay the progressscreen
__________________
java developer, Devinto, hamburg/germany
Offline  
Old 07-11-2008, 06:57 AM   #5 (permalink)
Knows Where the Search Button Is
 
Join Date: Oct 2005
Model: 7250
Carrier: ATT
Posts: 20
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Simon,
Thanks the piece I was missing is that I must close the screen using invokeLater else the popScreen throws illegal argument exception.
Thanks for the 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

MSA Altair H2S Single Gas Detector (11 Months Remaining)
$49.95
MSA Altair H2S Single Gas Detector (11 Months Remaining) pictureMSA Altair 4x Gas Confined Space Detector With Software, Charger, & Flow Control
$465.0
MSA Altair 4x Gas Confined Space Detector With Software, Charger, & Flow Control pictureMSA altair 4X multi gas detector Monitor Meter
$165.82
MSA altair 4X multi gas detector Monitor Meter picture(8) MSA 10083913 INTERNAL Li-Poly BATTERY - ALTAIR 4/ 4X MULTI-GAS DETECTOR *K12
$44.99
(8) MSA 10083913 INTERNAL Li-Poly BATTERY - ALTAIR 4/ 4X MULTI-GAS DETECTOR *K12 pictureMSA Altair 4x Gas Confined Space Detector O2 CO H2S LEL Warranty Calibrated
$185.0
MSA Altair 4x Gas Confined Space Detector O2 CO H2S LEL Warranty Calibrated picture






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