01-25-2012 05:25 PM
Is there anyway to intercept the lock key event when I press the lock button on top of the bb to lock the screen?
01-29-2012 12:23 AM
01-29-2012 06:16 PM
rcmaniac25 wrote:
I don't believe so. I thought there was a listener for when the device is locked and unlocked but can't seem to find that if it exists.
I can use the garbage cleaner listener but i don't need to know if the device is locked. That function has never work reliable. I want really want to do is disable the lock button so the system won't lock it. I guess there wasn't much thinking at RIM part as feature wise for the button. Would be nice if we can set the lock like the convienence key.
01-29-2012 06:51 PM
I think they put a lot of thought in it. For a company that prides itself on security, I doubt there will ever be a way to disable locking the device by allowing you to intercept and override the key.
01-29-2012 10:21 PM
the lock is not even security related. it just locks the screen and if RIM had thought about it they would have given developers access to lock and unlock the screen. I'm just talking about the screen and there is no security at all. Every platform has access to screen lock. it would nice if develop can replace the system screen lock.
01-31-2012 05:24 PM
You can listen for the Keypad.KEY_LOCK key to be pressed with a KeyListener, though only with your application in the foreground.
In previous OSes, the lock button would actually lock the device, which obviously should not be interceptable. Now it puts it into standby mode, which disables the screen, ignores touch events and most keypresses (number keys and the buttons by the track pad will wake the device, telling you it's locked). This is to save battery life and prevent accidental pocket dialing and such.
01-31-2012 09:15 PM
PBernhardt wrote:
You can listen for the Keypad.KEY_LOCK key to be pressed with a KeyListener, though only with your application in the foreground.
In previous OSes, the lock button would actually lock the device, which obviously should not be interceptable. Now it puts it into standby mode, which disables the screen, ignores touch events and most keypresses (number keys and the buttons by the track pad will wake the device, telling you it's locked). This is to save battery life and prevent accidental pocket dialing and such.
thanks but i'm more interested in disabling the lock button if i can globally and not just in my app.
02-02-2012 11:24 AM
Unfortunatly that is not supported.
05-07-2012 09:02 PM - edited 05-08-2012 08:54 PM