Music play on lock. Is it?

Monkey Targets Forums/Android/Music play on lock. Is it?

Zurrr(Posted 2013) [#1]
I'm not sure this happen. On my device its not. But I got this
report from Samsung:

I fail to add app on Samsung: got this report from Samsung
<Defect>
Application sound is audible on lock-screen.
<Procedure>
1. Execute application
2. Press HOLD key > Release hold mode
3. Check the sound
<Expected Result>
Application sound shouldn't be audible on lock-screen.
<device>
Galaxy Nexus(M420S/M420K)
Galaxy Tab Wi-Fi(M180W)
High-end Galaxy (HVGA)
High-end Galaxy Wi-Fi (HVGA)
Mid-end Galaxy (LQVGA)
Mid-end Galaxy (QVGA)
New Tablet Galaxy Wi-Fi (WSVGA)
Nexus S(M200S/M200K)
...and more


Midimaster(Posted 2013) [#2]
I also recognized last week, that my cheese box app did not stop playing sounds, when I switched my smartphone to "mute".

Who knows how we can check the "mute mode" and respect the users desire?

Or is it a bug and normaly the OS should respect it itself?


Zurrr(Posted 2013) [#3]
I try on my device. Actually samsung is correct. There is a problem.

Here to simulate the problem:

1. You need to turn on lock screen - under android security setting
2. Play any monkey game that has sound
3. Off your phone
4. On again - the lock screen will appear (because you set it on)
Actually on my phone I off it, that why I can't see the problem

Now you can here the sound of monkey game. But you not suppose to hear it
because you on a lock screen :(

Later, I need to manually try using onsuspend() to pause all sound. But then I need to continue back onresume(). I hope turn off phone will call onsuspend() and turn back on didn't call onresume() yet until we actually on the game.