12-16-2009 04:48 PM
Is there any method using java by which I can detect the keypad is currently locked or not.
Actually, I want to run my application when the keypad has been locked.
12-16-2009 05:29 PM
There is ApplicationManager.isSystemLocked(), but you would have to poll this method.
You can also implement MemoryCleanerListener - There is an event sent to this listener when the device is locked.
12-17-2009 09:36 AM
thanks that really helps me but I was unable to maximize(request foreground) my application after the locked event. I am getting RuntimeException. I was trying to make a sort of screen saver that runs when ever the phone has been locked.
If you want to view the code please let me know.