Android - Telephony API 1.5
TelephonyManager:
1. public String getDeviceSoftwareVersion() : software version number, ex: IMEI/SV for GSM phones
2. public StringgetDeviceId() : unique device ID, for example,the IMEI for GSM phones
3. public CellLocationgetCellLocation() : the current location of the device
4. public List<NeighboringCellInfo>getNeighboringCellInfo() : neighboring cell list info of the device
5. public int getPhoneType() : two types available: PHONE_TYPE_NONE,
PHONE_TYPE_GSM
6. public StringgetNetworkOperatorName() : alphabetic name of current registered operator
7. public boolean isNetworkRoaming() : phone is roaming
8. public StringgetNetworkCountryIso() : ISO country code equivilent of the current registered operator's MCC (Mobile Country Code)
9. public int getNetworkType() : four types of network : NETWORK_TYPE_UNKNOWN,
NETWORK_TYPE_GPRS,
NETWORK_TYPE_EDGE,
NETWORK_TYPE_UMTS
10. public String getNetworkTypeName() : "UNKNOWN", "GPRS", "EDGE", "UMTS"
11. public int getSimState() : SIM_STATE_UNKNOWN,
SIM_STATE_ABSENT,
SIM_STATE_PIN_REQUIRED,
SIM_STATE_PUK_REQUIRED,
SIM_STATE_NETWORK_LOCKED,
SIM_STATE_READY
12. public String getSimOperator() : MCC+MNC (mobile country code + mobile network code) of the provider of the SIM. 5 or 6 decimal digits
13. public String getSimOperatorName() : Service Provider Name (SPN)
14. public String getSimCountryIso() : ISO country code equivalent for the SIM provider's country code
15. public String getSimSerialNumber() : serial number of the SIM
16. public StringgetSubscriberId() : unique subscriber ID, for example, the IMSI for a GSM phone
17. public String getLine1Number() : phone number string for line 1, for example, the MSISDN for a GSM phone
18. public String getLine1AlphaTag() : alphabetic identifier associated with the line 1 number
19. public String getVoiceMailNumber() : voice mail number
20. public String getVoiceMailAlphaTag() : alphabetic identifier associated with the voice mail number
21. public int getCallState() : CALL_STATE_IDLE , CALL_STATE_RINGING, CALL_STATE_OFFHOOK
22. public int getDataActivity() : DATA_ACTIVITY_NONE,
DATA_ACTIVITY_IN,
DATA_ACTIVITY_OUT,
DATA_ACTIVITY_INOUT
23. public int getDataState() : DATA_DISCONNECTED,
DATA_CONNECTING,
DATA_CONNECTED,
DATA_SUSPENDED
GsmCellLocation :
1. public int getLac()
2. public int getCid()
NeighboringCellInfo :
1. public int getRssi() : received signal strength in "asu", ranging from 0 - 31, or UNKNOWN_RSSI if unknown For GSM, dBm = -113 + 2*asu, 0 means "-113 dBm or less" and 31 means "-51 dBm or greater"
2. public int getCid() : cell id, UNKNOWN_CID if unknown, 0xffffffff max legal value
Android - Telephony API 1.5的更多相关文章
- Android - Telephony API 1.6
SignalStrength: 1. public int getGsmSignalStrength() : GSM Signal Strength, valid values are (0-31, ...
- Android 使用Telephony API
Android 使用Telephony API public class TelephonyDemo extends Activity { TextView textOut; TelephonyMan ...
- Android 中文API (68) —— BluetoothClass.Service
前言 本章内容是 android.bluetooth.BluetoothClass.Service,为Android蓝牙部分的章节翻译,版本为 Android 2.3 r1,翻译来自中山大学的&q ...
- Android Telephony分析(七) ---- 接口扩展(异步转同步)
本文是基于上一篇<Android Telephony分析(六) —- 接口扩展(实践篇)>来写的.上一篇介绍的接口扩展的方法需要实现两部分代码:1. 从APP至RIL,发送请求:2. 从R ...
- com.android.build.api.transform.TransformException: com.android.builder.packaging.DuplicateFileException: Duplicate files copied in APK assets/com.xx.xx
完整的Error 信息(关键部分) Error:Execution failed for task ':fanwe_o2o_47_mgxz_dingzhi:transformResourcesWith ...
- Sorry, but the Android VPN API doesn’t currently allow TAP-based tunnels.
Sorry, but the Android VPN API doesn’t currently allow TAP-based tunnels. Edit .ovpn configfile “dev ...
- Android 系统API实现数据库的增删改查和SQLite3工具的使用
在<Android SQL语句实现数据库的增删改查>中介绍了使用sql语句来实现数据库的增删改查操作,本文介绍Android 系统API实现数据库的增删改查和SQLite3工具的使用. 系 ...
- 【NFC】Android NFC API Reference中英文
0 Near Field Communication Near Field Communication (NFC) is a set of short-range wireless technol ...
- Android开发-API指南-应用程序开发基础
Application Fundamentals 英文原文:http://developer.android.com/guide/components/fundamentals.html 采集(更新) ...
随机推荐
- mysql统计一个库里面的表的总数
SELECT COUNT(TABLE_NAME) FROM information_schema.tables WHERE TABLE_SCHEMA = 'weixin_platform' weixi ...
- css字体中英文对照表(转)
在css文件中,我们常看到有些字体名称变成了乱码,这是由于网页开发者将中文字体的名字直接写成了中文,而css文件本身没有声明字符编码方式,查看时就出现了乱码.为了避免这种乱码状况出现,可以将css文 ...
- java后端时间处理工具类,返回 "XXX 前" 的字符串
转自:https://www.cnblogs.com/devise/p/9974672.html 我们经常会遇到显示 "某个之间之前" 的需求(比如各种社交软件,在回复消息时,显示 ...
- 基于Spring Boot和Spring Cloud实现微服务架构学习
转载自:http://blog.csdn.net/enweitech/article/details/52582918 看了几周Spring相关框架的书籍和官方demo,是时候开始总结下这中间的学习感 ...
- Oracle 注意点大全
1.索引 经常查询的字段.主表与从表关联主键id必须建立索引.
- xcode编译提示Permission denied
编译第三方XCode插件时,提示没有文件操作权限(Permission denied) 使用命令行,修改Xcode目录当前用户操作权限: sudo chmod -R 777 /Users/当前的用户名 ...
- [转].NET 4.5+项目迁移.NET Core的问题记录 HTTP Error 502.5
本文转自:http://www.cnblogs.com/ronli/p/5900001.html 这几天试着把目前的开发框架迁移到新的.net core平台,中间遇到的问题在这里简单记录一下. 迁移过 ...
- netstat/lsof
netstat/lsof netstat命令用于显示与IP.TCP.UDP和ICMP协议相关的统计数据,一般用于检验本机各端口的网络连接情况 -a 显示一个所有的有效连接信息列表(包括已建立的连接,也 ...
- Linux --centos7 开机启动设置
以Linux下指定sun用户在linux开机时执行/home/sun/startrun.sh为例: 以root登录linux 执行vi /etc/rc.d/rc.local 在文档末尾添加一行语句:s ...
- [Selenium]Grid模式下运行时打印出当前Case在哪台node机器上运行
当Case在本地运行成功,在Grid模式下运行失败时,我们需要在Grid模式下进行调试,同时登录远程的node去查看运行的情况. Hub是随机将case分配到某台node上运行的,怎样知道当前的cas ...