Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Highlighted
New Contributor
Posts: 8
Registered: ‎10-29-2011
My Device: Playbook

"Lock" screen on proximity sensor reading

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!

Contributor
Posts: 13
Registered: ‎01-11-2013
My Device: PlayBook
My Carrier: Bell

Re: "Lock" screen on proximity sensor reading

I'm looking for the solution for BB10 too. Anyone knows about this? Please help.

Many thanks!
New Contributor
Posts: 8
Registered: ‎04-21-2013
My Device: Z10
My Carrier: developer

Re: "Lock" screen on proximity sensor reading

Hi, brother! Have you find a way to achieve that? I need it also.Smiley Sad