Android Question Is it possible to know the state of KeepAlive?

JoanRPM

Active Member
Licensed User
Longtime User
To make the screen does not stop, I have in the program:
Awake.KeepAlive (False). It works fine.

I need to know if it has entered in the low light mode.

I tried to read the brightness of the screen: p.GetSettings ("screen_brightness")
but the value is not changed (always shows the same value).

Is there any way to know the state of KeepAlive?

Thank you.
 
Upvote 0
Yes, I had tried this also, but neither works.
After a certain time, because of the timeout screen, the display brightness down, but the variable "current" always indicates the same value (I put a Log in a Timer).
I can not detect that it is in low light due to the screen timeout.

But the basic question is how can I detect that I have entered in this mode.

Thank you.
 
Upvote 0

Similar Threads

Back
Top