I use KeepAlive(True) of PhoneWakeState in Activity_Pause and ReleaseKeepAlive in Activity_Resume.
When I run my app, screen goes dimmer in about 20 sec, then goes black for 1 sec then comes back automatically - to repeat all this 30 secs later. (My android is set to 30 sec screen timeout.)
So it is like "sort of" working, but not entirely.
I use KeepAlive(True) of PhoneWakeState in Activity_Pause and ReleaseKeepAlive in Activity_Resume.
When I run my app, screen goes dimmer in about 20 sec, then goes black for 1 sec then comes back automatically - to repeat all this 30 secs later. (My android is set to 30 sec screen timeout.)
So it is like "sort of" working, but not entirely.