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

Java Development

Reply
Developer
ashish12169
Posts: 214
Registered: ‎03-18-2012
My Device: 8520

Can we programatically detect device is locked or not...

Hi,

      Please suggest can we programatically detect whether device is lock or not...

Developer
hemant_sain
Posts: 180
Registered: ‎12-09-2011
My Device: 9360, BB10

Re: Can we programatically detect device is locked or not...

Developer
simon_hain
Posts: 16,364
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport

Re: Can we programatically detect device is locked or not...

you can use
http://www.blackberry.com/developers/docs/7.1.0api/net/rim/device/api/system/ApplicationManager.html...
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Developer
Dionysus
Posts: 152
Registered: ‎07-28-2011
My Device: Bold 9900

Re: Can we programatically detect device is locked or not...

ApplicationManager.getApplicationManager().isSystemLocked();

 

Developer
ashish12169
Posts: 214
Registered: ‎03-18-2012
My Device: 8520

Re: Can we programatically detect device is locked or not...

Hi,

        Is there any event  for  device  unlock ?....

Developer
Dionysus
Posts: 152
Registered: ‎07-28-2011
My Device: Bold 9900

Re: Can we programatically detect device is locked or not...

ApplicationManager.getApplicationManager().lockSystem(false);