Reputation: 191
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)
Upvotes: 6
Views: 1329
Reputation: 515
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
Upvotes: 1