Thank you for your response.. I want to block the outgoing calls.. when my application is going in background.. I have written the following code with the help of stackoverflow but the code is not working:-
Will be waiting for your response.. thank you in advance.
public class OutgoingCallBlocking extends BroadcastReceiver {
String number;
@SuppressLint("WrongConstant")
@Override
public void onReceive(Context context, Intent intent) {
number = intent.getStringExtra(Intent.EXTRA_PHONE_NUMBER);
setResultData(null);
Toast.makeText(context, "Outgoing Call Blocked "+ number , 5000).show();
}
}
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I want the calls should get blocked .. how I can achieve that..?
What have you tried so far?
Thank you for your response.. I want to block the outgoing calls.. when my application is going in background.. I have written the following code with the help of stackoverflow but the code is not working:-
Will be waiting for your response.. thank you in advance.
public class OutgoingCallBlocking extends BroadcastReceiver {
}