TelephonyManager tm = (TelephonyManager)this.getSystemService(TELEPHONY_SERVICE);//取得系统服务
tm.getSimState();//获取SIM卡的6种状态,分别是TelephonyManager.SIM_STATE_ABSENT,TelephonyManager.SIM_STATE_UNKNOW
//TelephonyManager.SIM_NETWORK_LOCKED,TelephonyManager.SIM_PIN_REQUIRED,TelephonyManager.SIM_PUK_REQUIRED
//TelephonyManager.SIM_STATE_READY