PDA

View Full Version : Can we implement Key listener?


narasinga
05-03-2012, 02:27 AM
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
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
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
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
You can get phone call events with the phone listener.

See the java docs.