0

The app I am developing needs to know when someone presses the End Call button. It doesn't need to alter the button's function at all. It merely needs to know when it is pressed. I would just like to know if this is possible and how to do this?

I have been looking at the KeyEvent class, but I am unable to implement it. I don't even know if it will work.

SeanSWatkins
  • 413
  • 4
  • 9

1 Answers1

0

I highly doubt you can do this ... trapping key events that are not in your application is just malicious code.


Maybe you are interested in knowing if a call has been terminated?

If so: use the PhoneStateListener to detect state transitions from CALL_STATE_RINGING/CALL_STATE_OFFHOOK to CALL_STATE_IDLE

Suraj Rao
  • 29,388
  • 11
  • 94
  • 103
Reno
  • 33,594
  • 11
  • 89
  • 102
  • Thank you for your response. :-) but unfortunately just checking the state change isn't sufficient for the app. There are certain functions that would make life easier if i could get the event but alas, i shall make a work around – SeanSWatkins Dec 06 '11 at 05:36