Reputation: 2815
I am developing a call blocking application. All features are working well. But in case of call blocking, call has been rejected with a small ring on dialer side. I am using service for call blocking. My question is how can I increase priority of this service in such a way that call is rejected prior any ring on dialer side. I have also used priority="999" in receiver's intent-filter in the manifest. But it doesn't solve my problem.
Upvotes: 0
Views: 833
Reputation: 15155
You can combine between a BroadcastReceiver
with Service
. Once a call is coming, Android system triggers BroadcastReceiver
to fire onReceive()
method. Inside this method, call context.startService()
. So you don't need to set the priority to your Service
.
You can read this post about handling an incoming call automatically.
Upvotes: 1