BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 11-01-2009, 09:50 AM   #1 (permalink)
Knows Where the Search Button Is
 
Join Date: Oct 2009
Model: 8350i
PIN: N/A
Carrier: telus
Posts: 40
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Make app wait

Please Login to Remove!

I have an app I'm making where the user presses a key and a series of events occur. The problem is that during these events I need to prevent the user from pressing another key. Is there a way to lock the program somehow until my events complete?
Offline  
Old 11-01-2009, 10:19 AM   #2 (permalink)
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Post Thanks: 0
Thanked 34 Times in 33 Posts
Default

Start a separate thread to perform the processing, and put up a modal dialog, like "Processing...".
Offline  
Old 11-01-2009, 02:32 PM   #3 (permalink)
Knows Where the Search Button Is
 
Join Date: Oct 2009
Model: 8350i
PIN: N/A
Carrier: telus
Posts: 40
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Thanks

Thanks for the help. I figured it out a different way before I came back and saw your response. It was an audio file I was waiting for so I put a "do/while" loop in which did nothing while the player was in the started state. Don't know if it's the best way but it seems to work fine.
Offline  
Old 11-01-2009, 03:38 PM   #4 (permalink)
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Post Thanks: 0
Thanked 34 Times in 33 Posts
Default

Bad idea - this will result in the OS dumping your code out as "unresponsive" when run on the device.
Offline  
Old 11-01-2009, 06:24 PM   #5 (permalink)
Knows Where the Search Button Is
 
Join Date: Oct 2009
Model: 8350i
PIN: N/A
Carrier: telus
Posts: 40
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks again, you are a wealth of knowledge. I think I need to figure out this thread thing obviously.
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

Ushio Xeon Short Arc Lamp UXL-150SO (PF1924)
$139.99
Ushio Xeon Short Arc Lamp UXL-150SO (PF1924) pictureElectro PowerPacs Leitz Model 1220 Industrial Xeon Lamp PSU Power Supply PARTS
$49.99
Electro PowerPacs Leitz Model 1220 Industrial Xeon Lamp PSU Power Supply PARTS picture1PC USED Intel Xeon X5680 Six Core 12M Cache 3.33 GHz LGA 1366 #017
$138.99
1PC USED Intel Xeon X5680 Six Core 12M Cache 3.33 GHz LGA 1366 #017 pictureVintage Carl Zeiss Laboratory 1162 Combo Arc Lamp Supply 150 Xeon 200 Mercury
$249.99
Vintage Carl Zeiss Laboratory 1162 Combo Arc Lamp Supply 150 Xeon 200 Mercury pictureSupermicro X6DHT-G Dual Xeon Server Motherboard w/ Adaptec AAR-2020SA
$199.99
Supermicro X6DHT-G Dual Xeon Server Motherboard w/ Adaptec AAR-2020SA  picture






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