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
最后
以上就是眯眯眼小伙最近收集整理的关于Android获取SIM卡状态的全部内容,更多相关Android获取SIM卡状态内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复