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

Web and WebWorks Development

Reply
Highlighted
Developer
Posts: 164
Registered: ‎11-27-2012
My Device: Z10 LE,Dev Alpha C
My Carrier: China Mobile
Accepted Solution

How to lock the screen/ turn screen off?

is there any api that would turn off the screen ?

BlackBerry Cascades / WebWorks developer, Vendor name: anpho
Regular Contributor
Posts: 55
Registered: ‎05-16-2014
My Device: I'm not blackberry user
My Carrier: I'm not blackberry user

Re: How to lock the screen/ turn screen off?

Hi,

Please do clear your question. if you are asking for blackberry phone. follow these step

Settings > Security and Privacy > Device Password > Lock Device After Screen Lock

Thanks
Techvedic

Developer
Posts: 164
Registered: ‎11-27-2012
My Device: Z10 LE,Dev Alpha C
My Carrier: China Mobile

Re: How to lock the screen/ turn screen off?

sorry bro,but this is the native / cascades development forum,not the user forum.

 

I need the code, not the guide.

BlackBerry Cascades / WebWorks developer, Vendor name: anpho
New Developer
Posts: 41
Registered: ‎07-29-2012
My Device: 9650
My Carrier: sprint

Re: How to lock the screen/ turn screen off?

I think you should  try invoke framework ! Smiley Happy

--
Triệu Chung
VietNam National University
Developer
Posts: 6,152
Registered: ‎07-05-2012
My Device: Playbook, Dev Alpha C, Z10 LE, Z30
My Carrier: Orange

Re: How to lock the screen/ turn screen off?

There is no current api to achieve this.

 

I recommend you enter a feature request in to DIT.

https://www.blackberry.com/jira/secure/Dashboard.jspa


If you've been helped click on Like Button, if you've been saved buy the app. Smiley Happy

Developer of stokLocker, Sympatico and Super Sentences.