how to disconnect the call in android 4.1.2 nexus programmatically

房东的猫 提交于 2019-12-03 14:57:18

MODIFY_PHONE_STATE is no longer working on silenceRinger() since 2.3+, but endCall is just fine.

So the solution is to comment out the call to silenceRinger().

And a simple example:

 http://androidbridge.blogspot.ro/2011/05/how-to-answer-incoming-call-in-android.html

Cheers

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