Re-enable music when application is brought to foreground?
Please Login to Remove!
When I push the end button while my game is running, the game is sent to the background, but the audio that plays in the game stays on. I added a condition to keyDown that stops the media player when end is pushed. However, I can't figure out how to resume the sound when the application is brought back into the foreground.
Alternatively, is there a way to just pause the application entirely when it is sent to background and resume it when it is back in the foreground?
|