How to intercept incoming calls android 2.3.x

后端 未结 2 562
逝去的感伤
逝去的感伤 2020-12-11 12:47

I can intercept incoming and outgoing calls. My problem is that it does not work in version 2.3.x

here my code:

public class PhoneCallReceiver extend         


        
2条回答
  •  臣服心动
    2020-12-11 13:24

    MODIFY_PHONE_STATE permission is reserved for system use only, And ITelephony.silenceRinger() need MODIFY_PHONE_STATE permission. Use AudioManager if need to silent your phone at the time of call. But EndCall() will work fine.

提交回复
热议问题