BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 11-01-2009, 09:50 AM   #1
keatsp
Knows Where the Search Button Is
 
Join Date: Oct 2009
Model: 8350i
PIN: N/A
Carrier: telus
Posts: 40
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
Dougsg38p
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
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
keatsp
Knows Where the Search Button Is
 
Join Date: Oct 2009
Model: 8350i
PIN: N/A
Carrier: telus
Posts: 40
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
Dougsg38p
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
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
keatsp
Knows Where the Search Button Is
 
Join Date: Oct 2009
Model: 8350i
PIN: N/A
Carrier: telus
Posts: 40
Default

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


Armco Policies Dec 1965 Steel Plant Vintage 26 pgs booklet Butler, Pa 29th print picture

Armco Policies Dec 1965 Steel Plant Vintage 26 pgs booklet Butler, Pa 29th print

$14.99



Original New DEC Digital DCJ11-AE 57-19400-09 Vintage CPU x 1pc picture

Original New DEC Digital DCJ11-AE 57-19400-09 Vintage CPU x 1pc

$100.00



DEC / AMI 304E 21-15542-01 vintage ceramic IC - KTF11 Chip *NEW* 40278101  picture

DEC / AMI 304E 21-15542-01 vintage ceramic IC - KTF11 Chip *NEW* 40278101

$50.00



Vintage Journal Beautiful Garden Flower Embossed Leather-Antique Handmade Dec... picture

Vintage Journal Beautiful Garden Flower Embossed Leather-Antique Handmade Dec...

$27.91



Dec/Adac Corp. D4-10390 Rev 6 Model 1664ATTL Output Pulse Board 1983 (B16) picture

Dec/Adac Corp. D4-10390 Rev 6 Model 1664ATTL Output Pulse Board 1983 (B16)

$189.99



VINTAGE Bruker Board DEC W4P3042 for SpectroSpin 250 picture

VINTAGE Bruker Board DEC W4P3042 for SpectroSpin 250

$50.00







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