直接看api文档就一目了然了:
http://developer.android.com/reference/android/telephony/TelephonyManager.html#getSubscriberId()
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
List< CellInfo> |
getAllCellInfo()
Returns all observed cell information from all radios on the device including the primary and neighboring cells.
| ||||||||||
int |
getCallState()
Returns a constant indicating the call state (cellular) on the device.
| ||||||||||
CellLocation |
getCellLocation()
Returns the current location of the device.
| ||||||||||
int |
getDataActivity()
Returns a constant indicating the type of activity on a data connection (cellular).
| ||||||||||
int |
getDataState()
Returns a constant indicating the current data connection state (cellular).
| ||||||||||
String |
getDeviceId()
Returns the unique device ID, for example, the IMEI for GSM and the MEID or ESN for CDMA phones.
| ||||||||||
String |
getDeviceSoftwareVersion()
Returns the software version number for the device, for example, the IMEI/SV for GSM phones.
| ||||||||||
String |
getGroupIdLevel1()
Returns the Group Identifier Level1 for a GSM phone.
| ||||||||||
String |
getLine1Number()
Returns the phone number string for line 1, for example, the MSISDN for a GSM phone.
| ||||||||||
String |
getMmsUAProfUrl()
Returns the MMS user agent profile URL.
| ||||||||||
String |
getMmsUserAgent()
Returns the MMS user agent.
| ||||||||||
List< NeighboringCellInfo> |
getNeighboringCellInfo()
Returns the neighboring cell information of the device.
| ||||||||||
String |
getNetworkCountryIso()
Returns the ISO country code equivalent of the current registered operator's MCC (Mobile Country Code).
| ||||||||||
String |
getNetworkOperator()
Returns the numeric name (MCC+MNC) of current registered operator.
| ||||||||||
String |
getNetworkOperatorName()
Returns the alphabetic name of current registered operator.
| ||||||||||
int | getNetworkType() | ||||||||||
int |
getPhoneType()
Returns a constant indicating the device phone type.
| ||||||||||
String |
getSimCountryIso()
Returns the ISO country code equivalent for the SIM provider's country code.
| ||||||||||
String |
getSimOperator()
Returns the MCC+MNC (mobile country code + mobile network code) of the provider of the SIM.
| ||||||||||
String |
getSimOperatorName()
Returns the Service Provider Name (SPN).
| ||||||||||
String |
getSimSerialNumber()
Returns the serial number of the SIM, if applicable.
| ||||||||||
int |
getSimState()
Returns a constant indicating the state of the device SIM card.
| ||||||||||
String |
getSubscriberId()
Returns the unique subscriber ID, for example, the IMSI for a GSM phone.
| ||||||||||
String |
getVoiceMailAlphaTag()
Retrieves the alphabetic identifier associated with the voice mail number.
| ||||||||||
String |
getVoiceMailNumber()
Returns the voice mail number.
| ||||||||||
boolean | hasIccCard() | ||||||||||
boolean |
isNetworkRoaming()
Returns true if the device is considered roaming on the current network, for GSM purposes.
| ||||||||||
void |
listen(
PhoneStateListener listener, int events)
Registers a listener object to receive notification of changes in specified telephony states.
|