简体   繁体   中英

Missing parenthesis when dialing telephone number in android

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?

Probably be it depends on the operating system. But you wont be able to face any error form it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM