teddybear Well-Known Member Licensed User Jan 27, 2022 #1 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: AddPermission(android.permission.WAKE_LOCK) SetActivityAttribute(Main, android:keepScreenOn, "true") 'End of default text. My goal is to keep the screen on when video is playing. Thanks
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: AddPermission(android.permission.WAKE_LOCK) SetActivityAttribute(Main, android:keepScreenOn, "true") 'End of default text. My goal is to keep the screen on when video is playing. Thanks
Erel B4X founder Staff member Licensed User Longtime User Jan 27, 2022 #2 Acquire a wake lock with PhoneWakeState from the phone library. Upvote 0
teddybear Well-Known Member Licensed User Jan 27, 2022 #3 Erel said: Acquire a wake lock with PhoneWakeState from the phone library. Click to expand... Thank you a lot. It works well. I am a newbie, another question for ask, I do ReleaseKeepAlive in Activity_Pause, in Activity_Resume do I have to call KeepAlive(True)? Upvote 0
Erel said: Acquire a wake lock with PhoneWakeState from the phone library. Click to expand... Thank you a lot. It works well. I am a newbie, another question for ask, I do ReleaseKeepAlive in Activity_Pause, in Activity_Resume do I have to call KeepAlive(True)?
Erel B4X founder Staff member Licensed User Longtime User Jan 27, 2022 #4 No. You should switch to B4XPages. Upvote 0
teddybear Well-Known Member Licensed User Jan 27, 2022 #5 Erel said: No. You should switch to B4XPages. Click to expand... OK, Thanks a lot again. Upvote 0
teddybear Well-Known Member Licensed User Jan 27, 2022 #6 Go on the thread, the app it works well on my phone, so I installed it on my TV, the screen saver would be popped while video is playing, I don't how to disable it. Upvote 0
Go on the thread, the app it works well on my phone, so I installed it on my TV, the screen saver would be popped while video is playing, I don't how to disable it.