BlackBerry Forums Support Community

BlackBerry Forums Support Community (http://www.blackberryforums.com/)
-   Developer Forum (http://www.blackberryforums.com/developer-forum/)
-   -   Can we implement Key listener? (http://www.blackberryforums.com/developer-forum/259317-can-we-implement-key-listener.html)

narasinga 05-03-2012 02:27 AM

Can we implement Key listener?
 
hi friends,

can we implement key pad and trackwheel listener in outside of our application(Our application is running in background)..

Dougsg38p 05-03-2012 07:31 AM

Re: Can we implement Key listener?
 
Only the application with the current focus can get key and trackwheel events, so the answer is no.

narasinga 05-04-2012 11:26 PM

Re: Can we implement Key listener?
 
hi we can get the phone call events with phone listener... is there any possible to get these events...?

hrbuckley 05-05-2012 09:25 AM

Re: Can we implement Key listener?
 
As Dougsg38p says, keypad and trackwheel events are only delivered to the application with focus. The only exception is that in later OS versions they have started delivering some ancillary events (volume up/down, call star/end and the like) to background applications. If I remember correctly that started in OS 6, possibly OS 5.

Dougsg38p 05-05-2012 07:31 PM

Re: Can we implement Key listener?
 
You can get phone call events with the phone listener.

See the java docs.


All times are GMT -5. The time now is 11:26 PM.

Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.