If you talk about the programmatic screen off like by the hardware switch - it's impossible, IMHO.
PhoneWakeState is about switching off the backlight variant.
If you talk about the programmatic screen off like by the hardware switch - it's impossible, IMHO.
PhoneWakeState is about switching off the backlight variant.
Recent years and Android versions Google has limited the programmatic actions that may concern the security, private data access and so on.
It's easy to imagine: if some action is dangerous to "hack" the phone (switch on-off, delete info, send SPAM, discharge battery...) - it's already forbidden on non-rooted device, and impossible
oh sure I already tried for 2 days so far, the "proximity sensor" is a sensor so its read not write, I mean you can find out if the user put the phone to his ear but you need some code to lock the display
oh sure I already tried for 2 days so far, the "proximity sensor" is a sensor so its read not write, I mean you can find out if the user put the phone to his ear but you need some code to lock the display
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.