3

I am using PhoneStateListener for detecting the state of the call , but i want to fire an event when the user presses the End button to disconnect the call . From PhoneStateListener , we can access only three state Call_State_IDLE , Call_State_RINGNG , call_State_OFFHOOK , and Call_State_IDLE case fires either when user terminate the call or the caller terminate the call .

And i also want to find out that if the caller ends the calls in middle .

1 Answers1

0

You can know the user has ended the call when the phone state goes to IDLE. u can fire the event you want when PHONE_STATE goes to CALL_STATE_IDLE.

Guri Jagat
  • 51
  • 1
  • 8
  • 2
    you didn't understand my question properly . i want to know from which case the call state comes into IDLE . – user1403213 May 18 '12 at 12:28
  • You can't do this. You just can't, it's not in the API, and it's probably not accessible from the OS either, as the hardware only exposes a slim interface to the phone. – Kristopher Micinski May 18 '12 at 13:18