PhilipK Member Licensed User Longtime User Apr 21, 2015 #1 I've trawled a lot and can't find how to programatically turn on the screen when it is off. The phone wake states appear to stop the screen going off when it's on but not be able to turn the screen on when it is off. The Toggle library has toggle.useractivity which might work but I'm unclear on how to set the 'when' variable.: Many thanks in advance.
I've trawled a lot and can't find how to programatically turn on the screen when it is off. The phone wake states appear to stop the screen going off when it's on but not be able to turn the screen on when it is off. The Toggle library has toggle.useractivity which might work but I'm unclear on how to set the 'when' variable.: Many thanks in advance.
Erel B4X founder Staff member Licensed User Longtime User Apr 21, 2015 #2 PhoneWakeState.KeepAlive should turn on the screen. Make sure to call it from a service. Upvote 0
PhilipK Member Licensed User Longtime User Apr 21, 2015 #3 Erel said: PhoneWakeState.KeepAlive should turn on the screen. Make sure to call it from a service. Click to expand... It works, thanks Erel. PhoneWakeState.KeepAlive does light up the screen when called from a service. Not forgetting to ReleaseKeepAlive later. Upvote 0
Erel said: PhoneWakeState.KeepAlive should turn on the screen. Make sure to call it from a service. Click to expand... It works, thanks Erel. PhoneWakeState.KeepAlive does light up the screen when called from a service. Not forgetting to ReleaseKeepAlive later.