Hi, I wrote a video player with exoplayer library, it is always locked screen when playing .I have set WAKE_LOCK & keepScreenOn in the manifest file. but it doesn't work.
following is my manifest
[CODE lang="b4x" title="manifest"]
AddPermission(android.permission.WAKE_LOCK)
SetActivityAttribute(Main, android:keepScreenOn, "true")
'End of default text.
[/CODE]
My goal is to keep the screen on when video is playing.
Thanks