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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
Trusted Contributor
ashish12169
Posts: 200
Registered: ‎03-18-2012
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: 106
Registered: ‎12-09-2011
My Carrier: Aircel

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

Please use plain text.
Developer
simon_hain
Posts: 13,830
Registered: ‎07-29-2008
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 Carrier: MTN

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

ApplicationManager.getApplicationManager().isSystemLocked();

 

Please use plain text.
Trusted Contributor
ashish12169
Posts: 200
Registered: ‎03-18-2012
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 Carrier: MTN

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

ApplicationManager.getApplicationManager().lockSystem(false);

 

Please use plain text.