从 SIM 卡获取用户所在的国家/地区 [英] Get user’s country from SIM card

查看:64
本文介绍了从 SIM 卡获取用户所在的国家/地区的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以从 SIM 卡中检索用户所在的国家/地区吗?

Can I retrieve user’s country from SIM card?

我发现这个线程wp7 以编程方式访问 SIM 卡,但它很旧了,也许有些东西改变了从那时起?

I found this thread wp7 access SIM programmatically, but it’s very old, maybe something changed since that time?

如果我不能这样做,GPS 是最好的方法吗?
RegionInfo.CurrentRegion 不起作用.

If I cannot do this, will be GPS the best way?
RegionInfo.CurrentRegion don’t work.

推荐答案

SIM 卡上的发卡行标识号 (IIN) 包括国家/地区标识,可以是 2 位数(例如,英国为 44)或 3 位数(例如,卢森堡为 352).

The Issuer identification number (IIN) on the SIM card includes country identification which can be 2 digits (say, 44 for the UK) or 3 digits (say, 352 for Luxembourg).

所以理论上是可以的,但 Windows Phone(包括版本 8)不允许读取 SIM 卡的数据.

So theoretically it would be possible, but Windows Phone (and that includes version 8) does not allow reading the SIM card's data.

这篇关于从 SIM 卡获取用户所在的国家/地区的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆