Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Allowing screen sleep while program continues running

Author
Message
TokVaal
7
Years of Service
User Offline
Joined: 27th Jan 2017
Location:
Posted: 21st Feb 2018 16:29
I've built a simple audio player, it's plays several OGG tracks of an audio-book.

I would like to be able to have the screen go black, either after a certain amount of time, or if the user presses the power button, but still have the audio continue playing.

Right now, the app prevents the screen from dimming while the audio plays, ideal for a game but not for battery life.
When I press the power button on phone/tablet, it pauses the audio. I would like it to continue playing.

Does anyone know how to achieve that?
I think it may have something to do with the wakelock permission? or Screen sleep?

Login to post a reply

Server time is: 2024-11-24 00:29:19
Your offset time is: 2024-11-24 00:29:19