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  




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