Android手机中紧急号码的定制
来源:互联网 发布:sas建立永久数据集 编辑:程序博客网 时间:2024/04/29 10:46
PhoneNumberUtils.java 文件(frameworks\base\telephony\java\android\telephony)
/**
* isEmergencyNumber: checks a given number against the list of
* emergency numbers provided by the RIL and SIM card.
*
* @param number the number to look up.
* @return if the number is in the list of emergency numbers
* listed in the ril / sim, then return true, otherwise false.
*/
public static boolean isEmergencyNumber(String number) {
// If the number passed in is null, just return false:
if (number == null) return false;
// Strip the separators from the number before comparing it
// to the list.
number = extractNetworkPortionAlt(number);
// retrieve the list of emergency numbers
// check read-write ecclist property first
String numbers = SystemProperties.get("ril.ecclist");
if (TextUtils.isEmpty(numbers)) {
// then read-only ecclist property since old RIL only uses this
numbers = SystemProperties.get("ro.ril.ecclist");
}
if (!TextUtils.isEmpty(numbers)) {
// searches through the comma-separated list for a match,
// return true if one is found.
for (String emergencyNum : numbers.split(",")) {
if (number.startsWith(emergencyNum)) {
return true;
}
}
// no matches found against the list!
return false;
}
//no ecclist system property, so use our own list.
- Android手机中紧急号码的定制
- Android手机中紧急号码的定制
- Android手机中紧急号码的定制
- 手机紧急呼叫号码
- Android紧急号码修改
- android 拨打紧急号码
- MTK Android 紧急号码修改
- MTK Android 紧急号码修改
- Android紧急号码列表修改
- android如何客制化紧急号码?
- android 5.0 上拨打紧急号码无通话记录的原因
- Android手机中“本地号码”显示为“未知”的解决方法
- android 拨打紧急号码,通话时开启免提功能实现
- Androidmtk紧急号码
- android 获取手机IMEI号码
- android 联系人从SIM卡导入的联系人号码是显示“其它”号码不是“手机或者电话”号码
- Android 手机的版本号 和 API 号码 匹配表?
- android 获取手机的号码,mac等部分参数
- PHP迅雷/快车下载地址互相转换
- 数据结构基础(C++版)(张力译版)校正 之一
- oracle中 connect by prior 递归算法
- "No match" error while execute the excutable
- nyoj489哭泣的天使
- Android手机中紧急号码的定制
- CentOS (RedHat) 6.2 使用 OpenLDAP
- 如何查找网上的资源
- Android 显示系统live Wallpaper
- imagemagick, imagick和magickwand编译安装
- x86版本Qtopia2.2.0的配置与编译
- 11月12日,EL表达式
- JavaBean _JSP
- 2012第37届ACM/ICPC中国区成都站总结