How to detect that End button is pressed on incoming call to disconnect
<p>I am using <strong>PhoneStateListener</strong> for detecting the state of the call ,  but i want to fire an event when the user presses the <strong>End button</strong> to disconnect the call . From <strong>PhoneStateListener</strong> , we can access only three state <strong>Call_State_IDLE</strong> , <strong>Call_State_RINGNG</strong> , <strong>call_State_OFFHOOK</strong>  , and Call_State_IDLE case fires either  when user terminate the call or the caller terminate the call . </p>

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