Windows phone 7 windows phone 7中的Sim卡号码和序列号
如何在windows phone 7中获取SIM卡号码或电话序列号?在安卓系统中,我使用了以下代码:Windows phone 7 windows phone 7中的Sim卡号码和序列号,windows-phone-7,Windows Phone 7,如何在windows phone 7中获取SIM卡号码或电话序列号?在安卓系统中,我使用了以下代码: / Get the SIM country ISO code String simCountry = telephonyManager.getSimCountryIso(); // Get the operator code of the active SIM (MCC + MNC) String simOperatorCode = telephonyManage
/ 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();
没有API可供第三方开发人员访问电话或SIM号码。代码为:/Get SIM country ISO代码字符串simCountry=telephonyManager.getSimCountryIso;//获取活动SIM MCC+MNC字符串simOperatorCode=telephonyManager.getSimOperator的操作员代码;//获取SIM操作员字符串的名称simOperatorName=telephonyManager.getSimOperatorName;//-需要READ_PHONE_STATE uses permission-//获取SIM卡的序列号字符串simSerial=telephonyManager.getSimSerialNumber;可能重复的可能重复的可能重复的是,这是为Android,我想正是这一个为WP7-WindowsPhone7