Reputation: 111
I'm trying to use intent to pass a number in dialer but when I tried using telephone numbers, there we're no parenthesis shown for example I have the ff. number (828) 316-0593
and will show as 8283160593
, it seems parenthesis and dashes are being ignored.
Code:
Uri phone = Uri.parse("tel:" + record.getString("phone"));
Intent dial = new Intent(Intent.ACTION_DIAL, phone);
startActivity(dial);
I also tried using mobile number +1 123 4512533
but the '+'
symbol still shown after passing to dialer.
When I used an emulator, it shows the same format when I open the dialer but when I try to used a physical device, it doesn't show the same.
How can I make the same output after passing to dialer? Which of these(emulator, physical) shows the correct output?
Upvotes: 0
Views: 425
Reputation: 4110
Probably be it depends on the operating system. But you wont be able to face any error form it.
Upvotes: 0