如何在Windows Phone 7中获取SIM卡号码或手机序列号?在Android中我使用此代码并且它可以工作:
/ Get the SIM country ISO code
String simCountry = telephonyManager.getSimCountryIso();
// Get the operator code of the active SIM (MCC + MNC)
String simOperatorCode = telephonyManager.getSimOperator();
// Get the name of the SIM operator
String simOperatorName = telephonyManager.getSimOperatorName();
// -- Requires READ_PHONE_STATE uses-permission --
// Get the SIM’s serial number
String simSerial = telephonyManager.getSimSerialNumber();
答案 0 :(得分:3)
第三方开发者无法访问手机或SIM卡号。