BlackBerry Forums Support Community

BlackBerry Forums Support Community (http://www.blackberryforums.com/index.php)
-   Developer Forum (http://www.blackberryforums.com/forumdisplay.php?f=15)
-   -   Make app wait (http://www.blackberryforums.com/showthread.php?t=209139)

keatsp 11-01-2009 09:50 AM

Make app wait
 
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?

Dougsg38p 11-01-2009 10:19 AM

Start a separate thread to perform the processing, and put up a modal dialog, like "Processing...".

keatsp 11-01-2009 02:32 PM

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.

Dougsg38p 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.

keatsp 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.


All times are GMT -5. The time now is 03:58 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.