从 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.