Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to redirect a call from one number to other in android

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)

like image 711
Shiv Avatar asked Nov 24 '11 12:11

Shiv


1 Answers

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

like image 168
Darshan Patel Avatar answered Nov 10 '22 03:11

Darshan Patel