-1

How to add a , comma sign into the phone call intent? 004216378497,,,,,,,,,2

my code is now like :

Intent intent = new Intent(Intent.ACTION_CALL);
intent.setData(Uri.parse("tel:" + phoneNumber));
context.startActivity(intent);
AskNilesh
  • 67,701
  • 16
  • 123
  • 163
Csabi
  • 3,097
  • 17
  • 59
  • 107

1 Answers1

1

Try this way (copied)

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

Source : Intent.ACTION does not dial after first # sign

  • unfortunately it does not helped my problem. the comma sign is still ignored by the Android phone :/ – Csabi Apr 25 '19 at 06:49
  • 1
    @Csabi, in which device are you checking, because it working fine in oppo device – android May 03 '19 at 09:53
  • @android I have tested it on samsung galaxy s7 edge and pixel 2 for both devices the number is called but everything after the first `,` comma sign is ignored – Csabi May 07 '19 at 05:59
  • 1
    @Csabi, i checked it on oppo f7 and it is working. so may be we have to find the solution device wise – android May 07 '19 at 06:08
  • @android yes I have read that it can be android system dependent or maybe device dependent. :/ I really does not know why. I have applied the upper mentioned solution so at least on some devices it will be working – Csabi May 23 '19 at 09:27