Using Android API23 Call and Call.Details Class to get Disconnect Cause for Calls

核能气质少年 提交于 2020-01-01 18:09:31

问题


All i am trying to do is to get the reason why a call was disconnected. I have searched but i am unable to find any solution for API level under 23. but in API 23 we have;

  1. https://developer.android.com/reference/android/telecom/Call.html
  2. https://developer.android.com/reference/android/telecom/Call.Details.html

Call.Details.getDisconnectCause() returns the Disconnect Cause object but i am unable to understand how i can use use the CALL class or DETAILS class or which broadcasts to use to get these objects(if any).

So is there a broadcast i have to handle that returns call states in extras? or is there another way to use this class?

来源:https://stackoverflow.com/questions/39639882/using-android-api23-call-and-call-details-class-to-get-disconnect-cause-for-call

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!