How to redirect calls from one number to another in android. (Ex: if first number is switched off then how to switch a call to another number of a same person)
String callForwardString = "**21*1234567890#";
Intent intentCallForward = new Intent(Intent.ACTION_DIAL); // ACTION_CALL
Uri uri2 = Uri.fromParts("tel", callForwardString, "#");
intentCallForward.setData(uri2);
startActivity(intentCallForward);
This is what u might be looking for. However, this will work for GSM only. Also you need to try on actual handset, not sure whether it will work on Emulator
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With