Methods Summary |
---|
public java.lang.String | getDeviceId()Retrieves the unique device ID, e.g., IMEI for GSM phones.
mContext.enforceCallingOrSelfPermission(READ_PHONE_STATE, "Requires READ_PHONE_STATE");
return mPhone.getDeviceId();
|
public java.lang.String | getDeviceSvn()Retrieves the software version number for the device, e.g., IMEI/SV
for GSM phones.
mContext.enforceCallingOrSelfPermission(READ_PHONE_STATE, "Requires READ_PHONE_STATE");
return mPhone.getDeviceSvn();
|
public java.lang.String | getLine1AlphaTag()Retrieves the alpha identifier for line 1.
mContext.enforceCallingOrSelfPermission(READ_PHONE_STATE, "Requires READ_PHONE_STATE");
return (String) mPhone.getLine1AlphaTag();
|
public java.lang.String | getLine1Number()Retrieves the phone number string for line 1.
mContext.enforceCallingOrSelfPermission(READ_PHONE_STATE, "Requires READ_PHONE_STATE");
return mPhone.getLine1Number();
|
public java.lang.String | getSimSerialNumber()Retrieves the serial number of the SIM, if applicable.
mContext.enforceCallingOrSelfPermission(READ_PHONE_STATE, "Requires READ_PHONE_STATE");
return mPhone.getSimSerialNumber();
|
public java.lang.String | getSubscriberId()Retrieves the unique sbuscriber ID, e.g., IMSI for GSM phones.
mContext.enforceCallingOrSelfPermission(READ_PHONE_STATE, "Requires READ_PHONE_STATE");
return mPhone.getSubscriberId();
|
public java.lang.String | getVoiceMailAlphaTag()Retrieves the alpha identifier associated with the voice mail number.
mContext.enforceCallingOrSelfPermission(READ_PHONE_STATE, "Requires READ_PHONE_STATE");
return (String) mPhone.getVoiceMailAlphaTag();
|
public java.lang.String | getVoiceMailNumber()Retrieves the voice mail number.
mContext.enforceCallingOrSelfPermission(READ_PHONE_STATE, "Requires READ_PHONE_STATE");
return (String) mPhone.getVoiceMailNumber();
|