BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 07-09-2008, 03: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, 04: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, 08: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, 08: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, 07: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





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