Android Question Wake State App

eelias

Active Member
Licensed User
Longtime User
Hi there...

I have 2 apps that are used in Tablet and Android TV, and I need them to be always awake...

I dont want to have options to sleep or reduce the brightness of the screen.

How can I do that?

thanks

Eduardo
 

Computersmith64

Well-Known Member
Licensed User
Longtime User
You can use PhoneWakeState.KeepAlive (in the Phone library) to keep the device awake, but I don't think there's any way you can stop the user manually changing the brightness or putting the device to sleep. If you do use KeepAlive, don't forget to use ReleaseKeepAlive to put the device back in the normal state.

- Colin.
 
Upvote 0
Top