android handover incoming call to other calling app

[亡魂溺海] 提交于 2021-01-28 18:37:41

问题


I have made my app default calling app but for incoming call i don't want to use my UI i want to handover that incoming call to system default app actually i am rejecting specific an incoming call from my default app but when other call come i want to handover it to default system app how can i achieve this i have seen apps on Play Store doing this i have gone through all of the InCallService methods but i couldn't find any method to handover calls to system calling app i tried this method too but its giving exception no activity found

 Intent intent = new Intent( Intent.ACTION_ANSWER, Uri.parse( "tel:" + number));
 this.startActivity( intent );

回答1:


Android 9 will have handover option so you can check maybe that can help you, more on: https://developer.android.com/reference/android/telecom/Call#handoverTo(android.telecom.PhoneAccountHandle,%20int,%20android.os.Bundle)



来源:https://stackoverflow.com/questions/52134207/android-handover-incoming-call-to-other-calling-app

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