01-13-2013 10:54 PM
I'm getting events from proximity sensor to determine when the phone is near the head.
What is the correct way to "lock" or "turn off" the screen and then "unlock" it? Is there any API available for this purpose?
When the phone is moved away from the head I expect the screen should not require manual unlock gesture.
Please advise. Thanks!