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_NONEPHONE_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_UNKNOWNNETWORK_TYPE_GPRSNETWORK_TYPE_EDGENETWORK_TYPE_UMTS

10. public String getNetworkTypeName() : "UNKNOWN", "GPRS", "EDGE", "UMTS"

11. public int getSimState()SIM_STATE_UNKNOWNSIM_STATE_ABSENTSIM_STATE_PIN_REQUIREDSIM_STATE_PUK_REQUIREDSIM_STATE_NETWORK_LOCKEDSIM_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_NONEDATA_ACTIVITY_INDATA_ACTIVITY_OUTDATA_ACTIVITY_INOUT

23. public int getDataState()DATA_DISCONNECTEDDATA_CONNECTINGDATA_CONNECTEDDATA_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

 

转载于:https://www.cnblogs.com/davesuen/p/4107332.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值