java.lang.Object | |
↳ | com.htc.service.HtcTelephonyManager |
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | ACTION_PHONE_STATE_CHANGED_EXT | ||||||||||
int | ICC_STATE_ABSENT | ICC card state: no uim card is available in the device | |||||||||
int | ICC_STATE_NETWORK_LOCKED | ICC card state: Locked: requries a network PIN to unlock | |||||||||
int | ICC_STATE_PIN_REQUIRED | ICC card state: Locked: requires the user's UIM PIN to unlock | |||||||||
int | ICC_STATE_PUK_REQUIRED | ICC card state: Locked: requires the user's UIM PUK to unlock | |||||||||
int | ICC_STATE_READY | ICC card state: Ready | |||||||||
int | ICC_STATE_UNKNOWN | ICC card state: Unknown. | |||||||||
int | ICC_TYPE_2G | ICC type is 2G SIM | |||||||||
int | ICC_TYPE_3G | ICC type is 3G SIM | |||||||||
int | ICC_TYPE_NO_ICC | ICC type is No SIM | |||||||||
int | ICC_TYPE_SIM | ICC card type: SIM | |||||||||
int | ICC_TYPE_SUB_ICC | ||||||||||
int | ICC_TYPE_TITAN_LITE_SIM_CARD | ICC type is Titan Lite SIM | |||||||||
int | ICC_TYPE_UIM | ICC card type: UIM | |||||||||
int | ICC_TYPE_UNKNOW | ICC card type: UNKNOW | |||||||||
int | ICC_TYPE_UNKNOWN | ICC type is unknown | |||||||||
int | PHONE_TYPE_CDMA | Phone radio is CDMA. | |||||||||
int | PHONE_TYPE_GSM | Phone radio is GSM. | |||||||||
String | PHONE_TYPE_KEY | ||||||||||
int | PHONE_TYPE_NONE | No phone radio. | |||||||||
int | PHONE_TYPE_SIP | Phone is via SIP. | |||||||||
int | PHONE_TYPE_SUB_GSM | ||||||||||
int | PRECISE_CALL_STATE_ACTIVE | ||||||||||
int | PRECISE_CALL_STATE_ALERTING | ||||||||||
int | PRECISE_CALL_STATE_DIALING | ||||||||||
int | PRECISE_CALL_STATE_DISCONNECTED | ||||||||||
int | PRECISE_CALL_STATE_DISCONNECTING | ||||||||||
int | PRECISE_CALL_STATE_HOLDING | ||||||||||
int | PRECISE_CALL_STATE_IDLE | ||||||||||
int | PRECISE_CALL_STATE_INCOMING | ||||||||||
int | PRECISE_CALL_STATE_WAITING | ||||||||||
int | SECTOR_ID_NETWORK_EHRPD | ||||||||||
int | SECTOR_ID_NETWORK_LTE | ||||||||||
int | SIM_STATE_ABSENT | SIM card state: no SIM card is available in the device | |||||||||
int | SIM_STATE_NETWORK_LOCKED | SIM card state: Locked: requries a network PIN to unlock | |||||||||
int | SIM_STATE_PIN_REQUIRED | SIM card state: Locked: requires the user's SIM PIN to unlock | |||||||||
int | SIM_STATE_PUK_REQUIRED | SIM card state: Locked: requires the user's SIM PUK to unlock | |||||||||
int | SIM_STATE_READY | SIM card state: Ready | |||||||||
int | SIM_STATE_UNKNOWN | SIM card state: Unknown. | |||||||||
int | STATE_EMERGENCY_ONLY | ||||||||||
int | STATE_IN_SERVICE | ||||||||||
int | STATE_NETWORK_SEARCHING | ||||||||||
int | STATE_OUT_OF_SERVICE | ||||||||||
int | STATE_POWER_OFF | ||||||||||
int | UIM_STATE_ABSENT | ICC card state: no uim card is available in the device | |||||||||
int | UIM_STATE_NETWORK_LOCKED | ICC card state: Locked: requries a network PIN to unlock | |||||||||
int | UIM_STATE_PIN_REQUIRED | ICC card state: Locked: requires the user's UIM PIN to unlock | |||||||||
int | UIM_STATE_PUK_REQUIRED | ICC card state: Locked: requires the user's UIM PUK to unlock | |||||||||
int | UIM_STATE_READY | ICC card state: Ready | |||||||||
int | UIM_STATE_UNKNOWN |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Exit CDMA Emergency callback mode.
| |||||||||||
Authorize data roaming after radio had been turnned on.
| |||||||||||
Returns a constant indicating the call state (cellular) on the device.
| |||||||||||
Retrieves the CDMA MIN(Mobile Identification Number) of the device
| |||||||||||
Query the CDMA Smart Network service if be enabled or not.
| |||||||||||
Returns the current location of the device.
| |||||||||||
Returns the complete voice mail number.
| |||||||||||
Returns a constant indicating the type of activity on a data connection
(cellular).
| |||||||||||
Returns a constant indicating the current data connection state
(cellular).
| |||||||||||
Returns the main phone type
| |||||||||||
Returns the main phone type
| |||||||||||
Get the SIM detail status, which means, how many pin1/puk1/pin2/puk2 retry count(s) left.
| |||||||||||
Returns the unique device ID, for example, the IMEI for GSM and the MEID
or ESN for CDMA phones.
| |||||||||||
Returns the software version number for the device, for example,
the IMEI/SV for GSM phones.
| |||||||||||
Retrieves the ESN(Electronic Serial Number) of the device
| |||||||||||
get if GPRS attached, STATE_IN_SERVICE means attached, otherwise, detached.
| |||||||||||
Retrieves the unique device ID, e.g., IMEI for GSM phones.
| |||||||||||
Retrieves the software version number for the device, e.g., IMEI/SV
for GSM phones.
| |||||||||||
Retrieves the serial number of the ICC, if applicable.
| |||||||||||
Retrieves the alpha identifier for line 1.
| |||||||||||
Retrieves the phone number string for line 1.
| |||||||||||
Returns the HTC network type
| |||||||||||
Retrieves the unique sbuscriber ID, e.g., IMSI for GSM phones.
| |||||||||||
Retrieves the alpha identifier associated with the voice mail number.
| |||||||||||
Retrieves the voice mail number.
| |||||||||||
Returns the ISO country code equivalent for the ICC card provider's country code.
| |||||||||||
Returns the MCC+MNC (mobile country code + mobile network code) of the
provider of the SIM.
| |||||||||||
Returns the Service Provider Name (SPN).
| |||||||||||
Returns the serial number of the ICC card, if applicable.
| |||||||||||
Returns a constant indicating the state of the
device ICC card.
| |||||||||||
Get a suitable file name for current incall recording.
| |||||||||||
Returns the phone number string for line 1, for example, the MSISDN
for a GSM phone.
| |||||||||||
Returns the main phone type
| |||||||||||
Returns the neighboring cell information of the device.
| |||||||||||
Returns the numeric name (MCC+MNC) of current registered operator.
| |||||||||||
Returns the alphabetic name of current registered operator.
| |||||||||||
Returns a constant indicating the radio technology (network type)
currently in use on the device.
| |||||||||||
Get and Set Preferred network type
| |||||||||||
Returns the sector_id of the specified network type.
| |||||||||||
get the current Network Service.
| |||||||||||
Returns the sub phone type
| |||||||||||
Returns the unique subscriber ID, for example, the IMSI for a GSM phone.
| |||||||||||
get remaining subsidy lock type(s) waiting to be un-locked
| |||||||||||
Retrieves the alphabetic identifier associated with the voice
mail number.
| |||||||||||
Returns the voice mail number.
| |||||||||||
function for CDMA hangup call from hardware key
| |||||||||||
function for leaving CDMA power save mode
| |||||||||||
function for getting modem link status
| |||||||||||
Check device is into CDMA Emergency callback Mode or not.
| |||||||||||
Returns true if the device is considered roaming on the current
network, for GSM purposes.
| |||||||||||
Request for the AT+HTC_EHRPD_DISABLE:
Indicates eHRPD disable and restore the capability.
| |||||||||||
Enable or disable CDMA SMART Network service.
| |||||||||||
If you want to change the time zone setting of modem, use this.
| |||||||||||
Supply a pin to unlock the subsidy locked state.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
ICC card state: no uim card is available in the device
ICC card state: Locked: requries a network PIN to unlock
ICC card state: Locked: requires the user's UIM PIN to unlock
ICC card state: Locked: requires the user's UIM PUK to unlock
ICC card state: Ready
ICC card state: Unknown. Signifies that the ICC card is in transition between states. For example, when the user inputs the ICC card pin under PIN_REQUIRED state, a query for uim status returns this state before turning to ICC_STATE_READY.
ICC type is 2G SIM
ICC type is 3G SIM
ICC type is No SIM
ICC card type: SIM
ICC type is Titan Lite SIM
ICC card type: UIM
ICC card type: UNKNOW
ICC type is unknown
Phone radio is CDMA.
Phone radio is GSM.
No phone radio.
Phone is via SIP.
SIM card state: no SIM card is available in the device
SIM card state: Locked: requries a network PIN to unlock
SIM card state: Locked: requires the user's SIM PIN to unlock
SIM card state: Locked: requires the user's SIM PUK to unlock
SIM card state: Ready
SIM card state: Unknown. Signifies that the SIM is in transition between states. For example, when the user inputs the SIM pin under PIN_REQUIRED state, a query for sim status returns this state before turning to SIM_STATE_READY.
ICC card state: no uim card is available in the device
ICC card state: Locked: requries a network PIN to unlock
ICC card state: Locked: requires the user's UIM PIN to unlock
ICC card state: Locked: requires the user's UIM PUK to unlock
ICC card state: Ready
Authorize data roaming after radio had been turnned on.
Returns a constant indicating the call state (cellular) on the device.
Retrieves the CDMA MIN(Mobile Identification Number) of the device
Query the CDMA Smart Network service if be enabled or not. The SMART Network was support on specific CDMA project.
Returns the current location of the device. Return null if current location is not available.
Requires Permission:
ACCESS_COARSE_LOCATION
or
ACCESS_FINE_LOCATION
.
Returns the complete voice mail number. Return null if it is unavailable.
Requires Permission:
CALL_PRIVILEGED
Returns a constant indicating the type of activity on a data connection (cellular).
Returns a constant indicating the current data connection state (cellular).
Get the SIM detail status, which means, how many pin1/puk1/pin2/puk2 retry count(s) left.
Returns the unique device ID, for example, the IMEI for GSM and the MEID or ESN for CDMA phones. Return null if device ID is not available.
Requires Permission:
READ_PHONE_STATE
Returns the software version number for the device, for example, the IMEI/SV for GSM phones. Return null if the software version is not available.
Requires Permission:
READ_PHONE_STATE
Retrieves the ESN(Electronic Serial Number) of the device
get if GPRS attached, STATE_IN_SERVICE means attached, otherwise, detached.
Retrieves the unique device ID, e.g., IMEI for GSM phones.
Retrieves the software version number for the device, e.g., IMEI/SV for GSM phones.
Retrieves the serial number of the ICC, if applicable.
Retrieves the alpha identifier for line 1.
Retrieves the phone number string for line 1.
Retrieves the unique sbuscriber ID, e.g., IMSI for GSM phones.
Retrieves the alpha identifier associated with the voice mail number.
Retrieves the voice mail number.
Returns the ISO country code equivalent for the ICC card provider's country code.
Returns the MCC+MNC (mobile country code + mobile network code) of the provider of the SIM. 5 or 6 decimal digits.
Availability: ICC card state must be ICC_STATE_READY
Returns the Service Provider Name (SPN).
Availability: ICC card state must be ICC_STATE_READY
Returns the serial number of the ICC card, if applicable. Return null if it is unavailable.
Requires Permission:
READ_PHONE_STATE
Returns a constant indicating the state of the device ICC card.
Get a suitable file name for current incall recording. The file name could be null if it is illegal state.
Returns the phone number string for line 1, for example, the MSISDN for a GSM phone. Return null if it is unavailable.
Requires Permission:
READ_PHONE_STATE
Returns the neighboring cell information of the device.
Requires Permission: (@link android.Manifest.permission#ACCESS_COARSE_UPDATES}
Returns the numeric name (MCC+MNC) of current registered operator.
Availability: Only when user is registered to a network. Result may be unreliable on CDMA networks (use #getPhoneType() to determine if on a CDMA network).
Returns the alphabetic name of current registered operator.
Availability: Only when user is registered to a network. Result may be unreliable on CDMA networks (use #getPhoneType() to determine if on a CDMA network).
Returns a constant indicating the radio technology (network type) currently in use on the device.
phoneName | The phone name see com.android.internal.telephony.Phone.PHONE_NAME_GSM see com.android.internal.telephony.Phone.PHONE_NAME_CDMA see com.android.internal.telephony.Phone.PHONE_NAME_SIP Returns the phone type is valid or not |
---|
Returns the sector_id of the specified network type.
requestedNetworkType | Possible network types:
eHRPD SECTOR_ID_NETWORK_EHRPD
LTE SECTOR_ID_NETWORK_LTE |
---|
Returns the unique subscriber ID, for example, the IMSI for a GSM phone. Return null if it is unavailable.
Requires Permission:
READ_PHONE_STATE
get remaining subsidy lock type(s) waiting to be un-locked
Retrieves the alphabetic identifier associated with the voice mail number.
Requires Permission:
READ_PHONE_STATE
Returns the voice mail number. Return null if it is unavailable.
Requires Permission:
READ_PHONE_STATE
function for CDMA hangup call from hardware key
function for leaving CDMA power save mode
phoneType | The phone type Returns the phone type is the type of default main phone or not |
---|
Check device is into CDMA Emergency callback Mode or not.
phoneType | The phone type Returns the phone type is the type of main phone or not |
---|
Returns true if the device is considered roaming on the current network, for GSM purposes.
Availability: Only when user registered to a network.
phoneType | The phone type Returns the phone type is valid or not |
---|
Request for the AT+HTC_EHRPD_DISABLE: Indicates eHRPD disable and restore the capability. "ehrpdmode" is int ehrpdmode is 0 for The device is restoring to the previous eHRPD capability 1 for The device is disabling eHRPD capability "response" is NULL
Enable or disable CDMA SMART Network service. The SMART Network was support on specific CDMA project.
enable | Enable or disable SMART Network. |
---|
If you want to change the time zone setting of modem, use this. ex: GMT+8 setTimeZone(true, 28800)
sign | The offset is + or -. |
---|---|
offset | The time offset in seconds unit. |
Supply a pin to unlock the subsidy locked state. Blocks until a result is determined.
type | The type to unlock. |
---|---|
pin | The pin to check. |