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

How to redirect calls from one number to another in android. (Example: if the first number is turned off, then how to switch the call to another number of the same person)

+6
source share
1 answer
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 you can look for. However, this will only work for GSM. You also need to try a real handset, not sure if it will work on an emulator

+1
source

Source: https://habr.com/ru/post/902304/


All Articles