I have registered a broadcast receiver for PHONE_STATE
so whenever a call is disconnected I can execute code. I am trying to find the cause of the disconnection which I believe it can be found by calling Call.Details.getDisconnectCause
. The problem is how can I retrieve and instance of class Call
relating to the call which was just disconnected.
Here are some links which I have seen but haven't found the solution yet:
Thank you