android-关于SIM卡状态信息获取类IccCardConstants.java
来源:互联网 发布:合肥万户网络怎么样 编辑:程序博客网 时间:2024/06/06 01:28
android-4.3:
分享下发现的有用类:
package com.android.internal.telephony;
/**
* {@hide}
*/
public class IccCardConstants {
/* The extra data for broacasting intent INTENT_ICC_STATE_CHANGE */
public static final String INTENT_KEY_ICC_STATE = "ss";
/* UNKNOWN means the ICC state is unknown */
public static final String INTENT_VALUE_ICC_UNKNOWN = "UNKNOWN";
/* NOT_READY means the ICC interface is not ready (eg, radio is off or powering on) */
public static final String INTENT_VALUE_ICC_NOT_READY = "NOT_READY";
/* ABSENT means ICC is missing */
public static final String INTENT_VALUE_ICC_ABSENT = "ABSENT";
/* CARD_IO_ERROR means for three consecutive times there was SIM IO error */
static public final String INTENT_VALUE_ICC_CARD_IO_ERROR = "CARD_IO_ERROR";
/* LOCKED means ICC is locked by pin or by network */
public static final String INTENT_VALUE_ICC_LOCKED = "LOCKED";
/* READY means ICC is ready to access */
public static final String INTENT_VALUE_ICC_READY = "READY";
/* IMSI means ICC IMSI is ready in property */
public static final String INTENT_VALUE_ICC_IMSI = "IMSI";
/* LOADED means all ICC records, including IMSI, are loaded */
public static final String INTENT_VALUE_ICC_LOADED = "LOADED";
/* The extra data for broacasting intent INTENT_ICC_STATE_CHANGE */
public static final String INTENT_KEY_LOCKED_REASON = "reason";
/* PIN means ICC is locked on PIN1 */
public static final String INTENT_VALUE_LOCKED_ON_PIN = "PIN";
/* PUK means ICC is locked on PUK1 */
public static final String INTENT_VALUE_LOCKED_ON_PUK = "PUK";
/* PERSO means ICC is locked on PERSONALIZATION */
public static final String INTENT_VALUE_LOCKED_PERSO = "PERSO";
/* PERM_DISABLED means ICC is permanently disabled due to puk fails */
public static final String INTENT_VALUE_ABSENT_ON_PERM_DISABLED = "PERM_DISABLED";
/**
* This is combination of IccCardStatus.CardState and IccCardApplicationStatus.AppState
* for external apps (like PhoneApp) to use
*
* UNKNOWN is a transient state, for example, after user inputs ICC pin under
* PIN_REQUIRED state, the query for ICC status returns UNKNOWN before it
* turns to READY
*/
//SIM卡状态有10种
public enum State {
UNKNOWN,
ABSENT,
PIN_REQUIRED,
PUK_REQUIRED,
PERSO_LOCKED,
READY,
NOT_READY,
PERM_DISABLED,
CARD_IO_ERROR,
DETECTED;
public boolean isPinLocked() {
return ((this == PIN_REQUIRED) || (this == PUK_REQUIRED));
}
public boolean iccCardExist() {
return ((this == PIN_REQUIRED) || (this == PUK_REQUIRED)
|| (this == PERSO_LOCKED) || (this == READY)
|| (this == PERM_DISABLED) || (this == CARD_IO_ERROR)
|| (this == DETECTED));
}
}
}
- android-关于SIM卡状态信息获取类IccCardConstants.java
- Android记录3--ExpandableListView使用+获取SIM卡状态信息
- Android 获取SIM卡状态
- Android获取SIM卡状态
- android获取SIM卡状态
- Android-获取sim卡状态
- android 获取sim卡信息
- Android 获取Sim卡信息
- ExpandableListView使用+获取SIM卡状态信息
- Android 查看SIM卡状态及SIM信息
- Android:SIM信息获取
- android,sim卡,TelephonyManager,手机SIM卡状态的获取
- TelephonyManager类:Android手机及Sim卡状态的获取
- TelephonyManager类:Android手机及Sim卡状态的获取
- TelephonyManager类:Android手机及Sim卡状态的获取
- android sim卡 TelephonyManager类:Android手机及Sim卡状态的获取
- 获取Android手机中SIM卡状态
- Android获取手机SIM卡状态
- Spring中bean的实例化方式
- 分层设计软件
- 指针和函数奇数因子
- gcc -O选项
- 多线程共享数据的更新的解决办法
- android-关于SIM卡状态信息获取类IccCardConstants.java
- 努力学习
- setRequestedOrientation
- 五子棋游戏中判断胜负的C++源代码
- 移动qq浏览器有新的功能-轻应用
- 国人当自强:两岸三地在线编程学习网站大搜罗
- 基于Eclipse的TI集成开发环境IDE-CCSv5使用教程
- 双”12“为何如此寂寞冷清?
- Ubuntu 10.04修改内核并编译后有线网卡无法使用问题解决