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
My Carrier: Company

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

Hi,

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

Please use plain text.
Developer
hemant_sain
Posts: 179
Registered: ‎12-09-2011
My Device: 9360, BB10
My Carrier: Aircel

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

Please use plain text.
Developer
simon_hain
Posts: 16,001
Registered: ‎07-29-2008
My Device: Z10 LE
My Carrier: O2 Germany

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
Please use plain text.
Developer
Dionysus
Posts: 152
Registered: ‎07-28-2011
My Device: Bold 9900
My Carrier: MTN

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

ApplicationManager.getApplicationManager().isSystemLocked();

 

Please use plain text.
Developer
ashish12169
Posts: 214
Registered: ‎03-18-2012
My Device: 8520
My Carrier: Company

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

Hi,

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

Please use plain text.
Developer
Dionysus
Posts: 152
Registered: ‎07-28-2011
My Device: Bold 9900
My Carrier: MTN

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

ApplicationManager.getApplicationManager().lockSystem(false);

 

Please use plain text.