My App plays a sound file with MediaPlayer (and also shows "things" on the screen)
A Button changes the PhoneWakeState between KeepAlive(True) and ReleaseKeepAlive.
When the phone is in "KeepAlive" mode, the screen doesn't turn off and sound keeps playing
When the phone is in "ReleaseKeepAlive" mode and the screen dims and then turned off, the sound stops.
for the record:
Activity_Resume always "play" the sound.
Sound stop & released on Activity_Pause (UserClosed=True)
Is it possible to continue playing the sound even when screen of off.
A Button changes the PhoneWakeState between KeepAlive(True) and ReleaseKeepAlive.
When the phone is in "KeepAlive" mode, the screen doesn't turn off and sound keeps playing
When the phone is in "ReleaseKeepAlive" mode and the screen dims and then turned off, the sound stops.
for the record:
Activity_Resume always "play" the sound.
Sound stop & released on Activity_Pause (UserClosed=True)
Is it possible to continue playing the sound even when screen of off.