- iOS/Objective-C 元类和类别
- objective-c - -1001 错误,当 NSURLSession 通过 httpproxy 和/etc/hosts
- java - 使用网络类获取 url 地址
- ios - 推送通知中不播放声音
据我所知,巴西国家代码是 +55
但是这段代码
mobilePhoneNumber = "+32495665962";
isoCode = "BR";
phoneNumber = phoneNumberUtil.parse(mobilePhoneNumber, isoCode);
isValid = phoneNumberUtil.isValidNumber(phoneNumber);
phoneNumberType = phoneNumberUtil.getNumberType(phoneNumber);
System.out.println ("phoneNumber ----- > " + phoneNumber);
System.out.println ("isValid --------- > " + isValid);
System.out.println ("phoneNumberType - > " + phoneNumberType);
给我那个数字是有效的!
phoneNumber ----- > Country Code: 32 National Number: 495665962
isValid --------- > true
phoneNumberType - > MOBILE
最佳答案
defaultRegion
- region that we are expecting the number to be from. This is only used if the number being parsed is not written in international format. The country_code for the number in this case would be stored as that of the default region supplied. If the number is guaranteed to start with a '+' followed by the country calling code, then "ZZ" or null can be supplied.
您输入的是国际格式,所以没有使用这个参数。
为什么您希望图书馆将比利时的电话号码转换为巴西的电话号码?
关于java - com.google.i18n.phonenumbers 错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44309997/
我正在使用的 sdk-twilio-java-sdk-7.0.0-rc-10-jar-with-dependency.jar 我正在开发 eclipse luna,ibm bluemix 是服务器。
我在我的代码中使用了这个正则表达式代码: pattern = re.compile('\d{3,4}(\/?)(\d{6,6})') m= pattern.match('0481/987421') i
我们如何使用 python-phonenumbers库来确定特定电话号码是手机号码还是固定电话号码? 最佳答案 使用 phonenumbers.phonenumberutil.number_type
我正在为我的学生项目创建一个在线咖啡店。 因为它是一个大文件,而且我不确定有人需要哪一部分,这里是 github link 我已经创建了注册表单和订单表。 当我尝试注册时,在第二页出现此错误 完整的消
我正在为我的学生项目创建一个在线咖啡店。 因为它是一个大文件,而且我不确定有人需要哪一部分,这里是 github link 我已经创建了注册表单和订单表。 当我尝试注册时,在第二页出现此错误 完整的消
我正在使用这个: jQuery.validator.addMethod("regex2", function(value, element, param) { return value.match
我正在尝试实现 google的电话号码验证,顺便说一句,它使用这段代码对一些号码进行格式化 $("#phone").unbind().keyup(function () { var val_o
当我使用电话提供商通过 firebase-auth 验证用户时,在验证成功后,当前用户的属性 phoneNumber 中填充了已验证的号码。 但是,在应用重新启动后,该属性保持为空。我仍然可以通过 p
“5187621769”似乎应该是电话号码库解析的一个非常容易的号码。它是带有美国区号的 10 位数字。但是……运气不好。 设置: import phonenumbers number = '5187
这是从我在 DDD Yahoo! 上发布的内容重新发布的。团体。 在所有条件相同的情况下,你是写 phone.dial(phoneNumber) 还是 phoneNumber.dialOn(phone
我使用phoneAuth进行应用身份验证,并将Firebase Uid存储在自定义后端中。有没有一种方法可以从 uid 中检索电话号码?我只找到了通过 uid 或通过电话号码获取用户的方法。 Task
我有一个 string resource : text + 800-800-800 + text 800-800-800 - 是电话号码 我用这个string在我的 Dialog : 问题是:如何使
据我所知,巴西国家代码是 +55 但是这段代码 mobilePhoneNumber = "+32495665962"; isoCode = "BR";
使用 DataType Attribute 有什么区别?并传入值 DataType.Phone和 Phone Attribute它继承自 DataType 并自动设置 DataType.Phone?
II 尝试更改 ABPerson/ABMultiValue(电话号码)的值。 要更新这些吗? ABAddressBook *ab = [ABAddressBook sharedAddressBook]
我有 registerButton 和 otpButton 用于成功注册到应用程序。在点击注册按钮时,我将 otp 发送到该注册的电话号码。在 otpButton 中进行 otp 验证后,该人成功注册
我用过django-phonenumber-field作为我的电话号码模型字段和序列化程序。它起作用了,一切都很好。现在,我正在尝试在这两个包的 Django Rest Framework 中实现 J
嗨,我想用 viber intent 从我的应用程序发送消息,我的代码 Intent share = new Intent(android.content.Intent.ACTION_SEND);
基于 Google People API 的文档我正在使用配置文件范围 - https://www.googleapis.com/auth/user.phonenumbers.read 和 Perso
我想让用户通过短信与我的 Django 应用程序交互。 Twilio 的定价(对于电话号码和我要处理的文本量)还可以,但为什么我要这样做而不是通过运营商的电子邮件网关? API 网关提供哪些@vtex
我是一名优秀的程序员,十分优秀!