Is there a new, official API for rejecting calls on Android?

前端 未结 1 1054
南方客
南方客 2021-02-06 08:51

Background

For a very long time, there wasn\'t an official API for blocking calls on Android.

What developers did for CallerId and call-blocking apps, is to us

相关标签:
1条回答
  • 2021-02-06 09:01

    It should be quite easy with the new Android P API. Your app needs to request the permission Manifest.permission.ANSWER_PHONE_CALLS. Then you can call the method endCall of TelecomManager class doc here.

    0 讨论(0)
提交回复
热议问题