android Call Forwarding programatically
<p>I want to forward any calls received to another predefined phone number. I have searched forums and found some contradictary answers. so i m confused.</p>

<p>First I looked at this post <a href="http://stackoverflow.com/a/5735711">http://stackoverflow.com/a/5735711</a> which suggests that it is not possible through android.
But another post has some solution. <a href="http://stackoverflow.com/a/8132536/1089856">http://stackoverflow.com/a/8132536/1089856</a></p>

<p>I tried this code from second post, but i m getting the following error message: "Call Forwarding connection problem or Invalid MMI Code." </p>

<pre><code>String callForwardString = "**21*5556#";   
Intent intentCallForward = new Intent(Intent.ACTION_CALL);
Uri uri2 = Uri.fromParts("tel", callForwardString, "#");
intentCallForward.setData(uri2);                                
startActivity(intentCallForward);
</code></pre>

<p>Where 5556 is the number of emulator (for testing) where i want to forward call. </p>

<p>plz help.</p>
