Android 访问SIM卡详细信息
如何在Android中访问SIM卡序列号和IMSI?检查此项您可以使用以下代码获取SIM卡详细信息Android 访问SIM卡详细信息,android,api,telephony,Android,Api,Telephony,如何在Android中访问SIM卡序列号和IMSI?检查此项您可以使用以下代码获取SIM卡详细信息 mTelephonyMgr = (TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE); String imei = mTelephonyMgr.getDeviceId(); String country= mTelephonyMgr.getSimCountryIso();
mTelephonyMgr = (TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE);
String imei = mTelephonyMgr.getDeviceId();
String country= mTelephonyMgr.getSimCountryIso();
String SimOperator =mTelephonyMgr.getSimOperatorName();
String SimSerialNumber= mTelephonyMgr.getSimSerialNumber();
int SimState= mTelephonyMgr.getSimState();
String SubscriberId= mTelephonyMgr.getSubscriberId();
String DeviceId= mTelephonyMgr.getDeviceId();
String mob=mTelephonyMgr.getLine1Number();