Intent.ACTION does not dial after the first character #

I'm trying to call with a long number that looks something like this.

tel: 883994555 ,, 32343 # ,, #

with code that looks like this.

        Intent intent = new Intent(Intent.ACTION_CALL);
        Uri uri = Uri.parse(number);
        intent.setData(uri);
        startActivity(intent);

I see that the phone does not dial after the first '#' sigh. Anyone knows how to make this work.

Thank.

+3
source share
2 answers

How I got this to work was to use ';' (semicolon) for hard wait instead of "w" and "," (comma) for pause, and then first encode the phone number, for example:

Uri.parse(String.format("tel:%s", Uri.encode(number)))
+6
source

Uri.parse(String) parses RFC 2396 encoded URI.

RFC 2396 says:

"#" , URI URI.

+2

All Articles