broadcastreceiver - Block incoming call instantly in Android -


In my application, I want to give an option to block incoming calls.

For this, I refresh it.

And it works perfectly, but it takes about 2 seconds to end the call instantly.

And in the collar side, the person who is busy in your calling

P> Try it out in your code.

  Override public null at @Receive (reference reference, intention intent) {string number = intent .getStringExtra (Intent.EXTRA_PHONE_NUMBER); SetResultData (zero); // This call Toast.makeText will end (reference, "call ending" + number, 5000). Show (); }  

Comments