Android blocking outgoing calls program example

Intercept and monitor outgoing calls and handle them:

When making a call, the system will send an orderly broadcast. Although the broadcast will eventually be received by the broadcast receiver in the dialer and telephone dialing will be realized, we can get the broadcast before the broadcast is transmitted to the dial-up broadcast receiver, and then clear the telephone number transmitted to the dial-up broadcast receiver. When the dial-up broadcast receiver receives the broadcast, The call was cancelled because the phone number is null.

Receive the outgoing telephone broadcast intent, and subscribe to this intent in the < Application > node in the androidmanifest.xml file:

And make permission declaration:

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>