pushScreen in the middle of class -
11-01-2009, 02:37 PM
If I push a screen from another class will the code in that class complete before (or while) the new screen is displayed. Or does the remainder of the code after the pushScreen get discarded?
Sponsored Links
Please Login or Register to Remove these Advertisements!
Maybe I should be more specific. I have a main screen which has a keylistener. When the user presses a key I push the main screen to update the graphics and then call a method to play audio. No matter what I seem to do the audio plays and then the screen updates. I need the graphics to update and then the audio to play. Whats up?
Yeah you're right. I've been trying to put the audio in a seperate thread for about the last 2 hours now with no luck (first time). Is there a way to force the screen to repaint?
Thanks again Doug. I don't think I need the code snippet, I think I need to figure out how to run a seperate thread. I got some code from blackberry docs but can't get it going yet. I'm working on it, learning a lot.