10-03-2008 02:01 PM
How does one detect that the Blackberry (version 4.2 or greater) is currently password locked ?
Is there an event that is triggered when the device goes from:
- unlocked to locked state (and)
- locked to unlocked state
thanks
Amit
Solved! Go to Solution.
10-03-2008 02:37 PM
See ApplicationManager.isSystemLocked().
Also see the MemoryCleanerListener interface. There is an event passed to this listener when the system is locked.
10-16-2008 02:13 PM
02-09-2010 01:25 PM
While the MemoryCleanerListener works for this, I always find it enables the MemoryCleaner which causes an hourglass to pop up every time the device is locked while it frees memory. Is there a way to avoid this? Perhaps this is another way to detect the lock? You can use the isSystemLocked() but I really need an event so I don't have to have a thread sitting there polling. I know this is possible as other locking apps are able to detect the lock key and they do not even show up under the Reigstered Memory Cleaners in the options screen.
Thanks!