2010-11-10 163 views

回答

1

您可以用下面的代碼

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(); 
得到SIM細節