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
Highlighted
Developer
Posts: 77
Registered: ‎08-01-2008
My Device: Not Specified
Accepted Solution

How to programatically check if the device is currently locked?

How to programatically check if the device is currently locked?

Is there an API that can tell me that ?

 

I used DeviceInfo.isPasswordEnabled() but it does not seem to do the trick 

Developer
Posts: 984
Registered: ‎02-10-2009
My Device: Not Specified

Re: How to programatically check if the device is currently locked?

You can use ApplicationManager.isSystemLocked() method to determine if the BlackBerry is locked.

 

 

Regards

Bikas