如何在Android上找到用户SIM卡所在的国家?
有没有办法检查用户所在的国家/地区? “语言环境”还不够好,因为有很多英语语言环境,但它们遍布世界各地。
也许以某种方式使用 IMEI 或...?
所以实际上我需要找出SIM卡属于哪个国家?
编辑:GPS 或互联网不允许。
Is there a way to check what is the user's country? "Locale" isn't good enough because there are plenty of English locales but they are spread all over the world.
Maybe somehow with IMEI or...?
So actually I need to find out which country does the SIM card belong to?
EDIT: GPS or internet are not allowed.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
更多信息Android 文档 - TelephonyManager。
编辑:取决于您要寻找的内容。 IMEI 可能不相关,因为手机可能是从其他国家/地区订购/购买的,或者用户在使用手机时可能位于其他国家/地区。另外,我不知道 IMEI 是否告诉您设备实际销售的国家,而是制造商的国家(但不确定这一点)。
More info Android documentation - TelephonyManager.
Edit: Depends what you are looking for. IMEI may not be relevant as the phone might have been ordered/bought from another country or the user might be in another country when using it. Also I don't know if the IMEI tells you the actual contry the device is being sold in, but rather the country of the manufacturer (not sure on this one though).