I'm building a call diverting or call forwarding app for android using Xamarin. I found online this segment of code that i think is the code responsible for the call diverting action:
String callForwardString = "**21*1234567890#";
Intent intentCallForward = new Intent(Intent.ActionDial); // ACTION_CALL
Uri uri2 = Uri.fromParts("tel", callForwardString, "#");
intentCallForward.SetData(uri2);
startActivity(intentCallForward);
So i have couple of questions about it:
Does this code is the right code that i need for the call diverting action? I would love a source that explain what each function and line in this code do.
Because its a code specific for android i have a feeling that i would have to put it in the android project of my Xamarin Solution. Am i right about this?
Thanks in advance!