BlackBerryForums.com : Your Number One BlackBerry Community
     

»Sponsored Links


BlackBerryApps.com Best Sellers



Reply
 
LinkBack Thread Tools
  (#1 (permalink)) Old
keatsp Offline
Knows Where the Search Button Is
 
Posts: 26
Join Date: Oct 2009
Model: 8350i
PIN: N/A
Carrier: telus
Default Make app wait - 11-01-2009, 09:50 AM

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?
   
Reply With Quote
Sponsored Links
Please Login or Register to Remove these Advertisements!

  (#2 (permalink)) Old
Dougsg38p Offline
CrackBerry Addict
 
Posts: 814
Join Date: Mar 2008
Location: Austin, TX
Model: 8320
PIN: N/A
Carrier: T-Mobile
Default 11-01-2009, 10:19 AM

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

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.
   
Reply With Quote
  (#4 (permalink)) Old
Dougsg38p Offline
CrackBerry Addict
 
Posts: 814
Join Date: Mar 2008
Location: Austin, TX
Model: 8320
PIN: N/A
Carrier: T-Mobile
Default 11-01-2009, 03:38 PM

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

Thanks again, you are a wealth of knowledge. I think I need to figure out this thread thing obviously.
   
Reply With Quote
Reply


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-2009 BlackBerryFAQ.com, BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of Research In Motion Limited.