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
Developer
bwei
Posts: 26
Registered: 07-14-2008
Accepted Solution

How to programmatically detect the the Lock screen is shown?

Does anyone have the idea to programmatically detect if the Lock Scrren is shown? I want to detect this screen so my application could do special Notifications.

 

Thanks fro your helps.

Please use plain text.
Developer
RexDoug
Posts: 4,649
Registered: 07-21-2008

Re: How to programmatically detect the the Lock screen is shown?

You might try MemoryCleanerListener. You get a deviceLocked event when the screen is locked.

 

-de

 

 

 

Please use plain text.
Developer
bwei
Posts: 26
Registered: 07-14-2008

Re: How to programmatically detect the the Lock screen is shown?

Thanks very much. My application just want to detect if the Lock Scrren is shown, but do not care this event (EVENT_DEVICE_LOCK).
Please use plain text.
Administrator
MSohm
Posts: 11,465
Registered: 07-09-2008
My Carrier: Bell

Re: How to programmatically detect the the Lock screen is shown?

The ApplicationManager.isSystemLocked method can be used to determine if the BlackBerry is locked.
Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Found a bug? Report it using the Issue Tracker
Please use plain text.
Developer
bwei
Posts: 26
Registered: 07-14-2008

Re: How to programmatically detect the the Lock screen is shown?

Mark, Thanks very much. This is what I am looking for.:smileyhappy:
Please use plain text.