I try to use GSM codes to transfer my calls with an android app. For example, if I call : **21*otherNumber# All my calls will be transfered on otherNumber.
My code:
Uri transfert = Uri.parse( "tel:**21*" + numero + "#");
Intent intent = new Intent( Intent.ACTION_CALL, transfert );
startActivity(intent);
However, Uri.parse() has for definition: " A URI reference includes a URI and a fragment, the component of the URI following a '#' "
So, it removes the # but I need it. The GSM code can't works without it.
Somebody would have an idea ?