Intent.ACTION does not dial after first # sign

后端 未结 2 967
名媛妹妹
名媛妹妹 2021-01-13 01:33

I am trying to make a call with a long number that looks something like this.

tel:883994555,,,32343#,,,#

with code that looks like this.

           


        
2条回答
  •  不要未来只要你来
    2021-01-13 02:04

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

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

提交回复
热议问题