7

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:

Link 1

Link 2

Thank you

Community
  • 1
  • 1
Hamed
  • 297
  • 3
  • 21

0 Answers0