I have a problem with music on Motorola Xoom (3.1). There is a music playing in my game. After some time of user inactivity the device goes to sleep mode. When I wake it up and the screen with unlock button comes up the game music starts to play in the background even when the game should be paused -it is quite strange (and annoying
)
If I leave the game by pressing the Home button, the music stops and starts playing on return as expected.
Does anyone know how to solve that? Isn’t there, for instance, any way of detecting when the device goes into sleep mode (either because of the inactivity time or when the user presses the power button) so that I could stop the music from the script?
Thanks!