How to retrieve disconnect cause of android call?
Asked Answered
H

0

8

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

Hedvige answered 19/5, 2017 at 9:9 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.