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

New Member
Posts: 1
Registered: ‎07-30-2012
My Device: Curve 2 8530
My Carrier: Telcel

Keylistener on background mode/device locked

[ Edited ]



We are building an App that allows users to have a Panic button. The app has a KeyListener implemented so when a convenience key is pressed for more than "x" seconds an action is taken (sends an http post, makes a call, and puts a global modal screen on top of the call so that the call is made it goes unnoticed)
However we have run into 2 issues that haven't been able to solve:
1) We are not getting the KEYLISTENER events when app is in background mode and device has a keyboard lock
2) We cannot get the global modal screen on top of the call when device the keyboard is locked and app in background mode, even with the requestforeground method.
Does anybody has an idea on how to solve this?
Posts: 162
Registered: ‎10-11-2011
My Device: BlackBerry 9810
My Carrier: Rogers

Re: Keylistener on background mode/device locked

Hi There,


I dont think you will get any events when the keyboard is locked or when the applicaiton is in the background.




Naveen M