Detection of VoLTE call in android

眉间皱痕 提交于 2020-06-13 08:44:05

问题


I have a very minimal knowledge about VoLTE service in android which is provided by the LTE operator.

Is there any API's are available to detect VoLTE call in android?

The API's such as

  • Call Connected
  • Call Disconnected
  • Latency
  • Call Status

Any link/API reference is much appreciated.


回答1:


TelephonyManager.java have a function to check isVolteAvailable(). You can call that function to know the status of voLTE.

You can check the source here.. https://github.com/android/platform_frameworks_base/blob/master/telephony/java/android/telephony/TelephonyManager.java




回答2:


If you can connect to at port then by using standard at commands, this can be verified.

  1. at+cops? => this will give information about the current latched cell. check if the mobile is currently on LTE(7) cell.
  2. make volte call and shoot the at+cops? again. If the call is connected and mobile is still in LTE(7) cell, then its for sure VoLTE call.


来源:https://stackoverflow.com/questions/39224263/detection-of-volte-call-in-android

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