I would like to forward all calls to my number on to the new predefined number automatically. Is it possible to forward incoming call ?
Probably it is possible for Froyo at least. I found application called Easy Call Forwarding. http://www.appstorehq.com/easycallforwarding-android-189596/app But many people reckon it doesn't work actually.
We can notice forwarded call by onCallForwardingIndicatorChanged()
from PhoneStateListener
but
I have no idea how to set forwarding mode.
Call forwarding is often enabled by dialing *72 followed by the telephone number to which calls should be forwarded. Once someone answers, call forwarding is in effect. If no one answers or the line is busy, the dialing sequence must be repeated to effect call forwarding. Call forwarding is disabled by dialing *73.
What Does Call Forwarding Mean? Call forwarding is a phone feature that enables users to forward or redirect incoming calls to any alternate number, which may be either a land line or cellular number. Users are also provided with options to divert incoming calls to voice mails.
To stop forwarding all calls, dial *73. To stop forwarding when there is no answer, dial *93. To stop forwarding when the line is busy, dial *91.
I explored on the net and got the answer to my question that how one can forward a call programmatically. Add these lines of code and one will be able to achieve it.
String callForwardString = "**21*1234567890#";
Intent intentCallForward = new Intent(Intent.ACTION_DIAL); // ACTION_CALL
Uri uri2 = Uri.fromParts("tel", callForwardString, "#");
intentCallForward.setData(uri2);
startActivity(intentCallForward);
Here 1234567890 represents the phone number. Add the approriate phone number as you wish here. One can dial ##21# to deactivate the service.
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