Android How to make a call that includes “#” or “p” in the dial?

后端 未结 7 1765
伪装坚强ぢ
伪装坚强ぢ 2020-12-31 06:44

I need to make calls in my Android app that includes \"#\" or \"p\" in the dial.

If I use the next code:

Intent intent = new Intent(Intent.ACTION_CAL         


        
7条回答
  •  情话喂你
    2020-12-31 07:33

    I have solved this problem Here is the code solving it.

    Intent shortcutIntent = new Intent(Intent.ACTION_CALL, Uri.parse("tel:"+Uri.encode("*111*2#")));
    startActivity(shortcutIntent);
    

    Its working fine at my end. I hope its also helpful to you guys...

提交回复
热议问题