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

Pair Of Two Vintage Mac Tools Wrenches SAE Good Condition
$4.99
Pair Of Two Vintage Mac Tools Wrenches SAE Good Condition pictureVintage Mac Tools No. 200 Dial Indicator Set
$59.99
Vintage Mac Tools No. 200 Dial Indicator Set pictureNew Vintage Velocette MAC 350cc Single 1949 Petrol Fuel Gas Tank
$290.0
New Vintage Velocette MAC 350cc Single 1949 Petrol Fuel Gas Tank pictureVintage Mac Allied Hex Rethreader Dies - # TR-8-U in Case
$15.0
Vintage Mac Allied  Hex Rethreader Dies - # TR-8-U in Case  pictureVtg MAC Tools X106 5/16" Chrome SAE Socket 3/8" Drive 6 Point Sabina Ohio USA
$7.0
Vtg MAC Tools X106 5/16






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