Android-telephony API 1.5

Source: Internet
Author: User

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 () : Types available: PHONE_TYPE_NONE,  PHONE_TYPE_GSM

6. Public Stringgetnetworkoperatorname () : alphabetic name of the 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&NBSP; < Span style= "color: #ff0000;" >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 (): &NBSP;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)

< span class= "kw" >14. public  string  getsimcountryiso () :  iso Country code equivalent for The SIM provider ' s country code

< span class= "kw" >15. public string  getsimserialnumber () :  serial number of the SIM

< span class= "kw" >16.  Public string Getsubscriberid () :  unique subscriber ID, for example, the IMSI for a GSM phone

< span class= "kw" >17. public string  getline1number ():  phone number string for line 1, for example, the MSISDN for a GSM phone

< span class= "kw" >18. 

< span class= "kw" >19. < span class= "kw" >public string getvoicemailnumber ():  voice mail number

< span class= "kw" >20. public string getvoicemailalphatag ():  alphabetic Identifier associated with the voice mail number

< span class= "kw" >21. PUBLIC&NBSP; span class= "kw" >int getcallstate () :  call _state_idle,  call_state_ringing, CALL_STATE_OFFHOOK&NBSP;

< span class= "kw" >< span class= "kw" >22.  PUBLIC&NBSP; int getdataactivity () :   data_activity_none,  data_activity_in,  data_activity_out,  data_activity_inout

. public int getdatastate () DATA_DISCONNECTED,  DATA_CONNECTING,  DATA_CONNECTED,  : DATA_SUSPENDED

Gsmcelllocation:

1. Public int Getlac ()

2. public int getcid ()

Neighboringcellinfo:

< span class= "kw" >1. PUBLIC&NBSP; 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 means "51 DBm or greater "

2. Public int getcid () : Cell ID, unknown_cid if UNKNOWN, 0xFFFFFFFF max legal value

Android-telephony API 1.5

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.