私はいつもこのバグを受け取っています: 12-15 09:46:48.434: E/TelephonyManager(5127): getDefaultSim is sim1
私が電話したとき:
TelephonyManager mTelephonyMgr = (TelephonyManager) this.getSystemService(Context.TELEPHONY_SERVICE);
if( mTelephonyMgr != null && mTelephonyMgr.getDeviceId() != null )
deviceImei = mTelephonyMgr.getDeviceId();
if (mTelephonyMgr != null && mTelephonyMgr.getSimState() == TelephonyManager.SIM_STATE_READY)
country = mTelephonyMgr.getSimCountryIso();