Welcome!

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

Reply
Developer
Posts: 81
Registered: ‎12-04-2012
My Device: BlackBerry@8520 smartphone(Edge,Wi-fi)
My Carrier: vodafone
Accepted Solution

Listening Key_Events

I hava an app successfully running in the background ,as it does show on the switch app option However it is supposed to listen to key events which it isnt doing.This app does listen to the key_events when running in the foreground but it doesnt do so while in the background.I want it to listen to the keyevents when running in the background

Developer
Posts: 16,932
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: Listening Key_Events

a background app cannot get key events (with very few exceptions of special keys).
this is by design and for security reasons.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Highlighted
Developer
Posts: 81
Registered: ‎12-04-2012
My Device: BlackBerry@8520 smartphone(Edge,Wi-fi)
My Carrier: vodafone

Re: Listening Key_Events

thanks simon