BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 07-09-2008, 02:53 PM   #1
LiteWait
Knows Where the Search Button Is
 
Join Date: Oct 2005
Model: 7250
Carrier: ATT
Posts: 20
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
simon.hain
CrackBerry Addict
 
Join Date: Apr 2005
Location: hamburg, germany
Model: 8900
Carrier: o2
Posts: 838
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
LiteWait
Knows Where the Search Button Is
 
Join Date: Oct 2005
Model: 7250
Carrier: ATT
Posts: 20
Default

Simon,
Can you point me at an example?
Thanks!
Offline  
Old 07-10-2008, 07:48 AM   #4
simon.hain
CrackBerry Addict
 
Join Date: Apr 2005
Location: hamburg, germany
Model: 8900
Carrier: o2
Posts: 838
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
LiteWait
Knows Where the Search Button Is
 
Join Date: Oct 2005
Model: 7250
Carrier: ATT
Posts: 20
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



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


Honeywell 53C22K POTENTIOMETER #K-2211 picture

Honeywell 53C22K POTENTIOMETER #K-2211

$40.00



Automation Direct Potentiometer Part No. ECX2300-10K picture

Automation Direct Potentiometer Part No. ECX2300-10K

$30.00



1PC Potentiometer 22mm Diameter 10,000 Ohm Resistance Silver Bezel M22-R10K picture

1PC Potentiometer 22mm Diameter 10,000 Ohm Resistance Silver Bezel M22-R10K

$48.66



M22-R10K Potentiometer 22mm Diameter 10,000 Ohm Resistance Silver Bezel Qty:1pc picture

M22-R10K Potentiometer 22mm Diameter 10,000 Ohm Resistance Silver Bezel Qty:1pc

$36.84



10 turn Potentiometer 3590S Wirewound Variable Resistor Precision multi-turn POT picture

10 turn Potentiometer 3590S Wirewound Variable Resistor Precision multi-turn POT

$46.45



US Stock 10 Units 1K B1K OHM Linear Taper Rotary Potentiometer POT  Orange Knob picture

US Stock 10 Units 1K B1K OHM Linear Taper Rotary Potentiometer POT Orange Knob

$8.99







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