简体   繁体   English

android中拨打电话时缺少括号

[英]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.我正在尝试使用意图在拨号器中传递一个号码,但是当我尝试使用电话号码时,我们没有显示括号,例如我有 ff。 number (828) 316-0593 and will show as 8283160593 , it seems parenthesis and dashes are being ignored.编号(828) 316-0593并将显示为8283160593 ,似乎括号和破折号被忽略了。

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.我也尝试使用手机号码+1 123 4512533 ,但传递给拨号器后仍然显示'+'符号。

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?传递给拨号器后,如何制作相同的 output? Which of these(emulator, physical) shows the correct output?其中哪一个(仿真器,物理)显示正确的 output?

Probably be it depends on the operating system.可能取决于操作系统。 But you wont be able to face any error form it.但是您将无法面对任何错误。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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