FileDocCategorySizeDatePackage
PhoneSubInfo.javaAPI DocAndroid 1.5 API2668Wed May 06 22:42:00 BST 2009com.android.internal.telephony

PhoneSubInfo

public class PhoneSubInfo extends IPhoneSubInfo.Stub

Fields Summary
private Phone
mPhone
private android.content.Context
mContext
private static final String
READ_PHONE_STATE
Constructors Summary
public PhoneSubInfo(Phone phone)


       
        mPhone = phone;
        mContext = phone.getContext();
        ServiceManager.addService("iphonesubinfo", this);
    
Methods Summary
public java.lang.StringgetDeviceId()
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.StringgetDeviceSvn()
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.StringgetLine1AlphaTag()
Retrieves the alpha identifier for line 1.

        mContext.enforceCallingOrSelfPermission(READ_PHONE_STATE, "Requires READ_PHONE_STATE");
        return (String) mPhone.getLine1AlphaTag();
    
public java.lang.StringgetLine1Number()
Retrieves the phone number string for line 1.

        mContext.enforceCallingOrSelfPermission(READ_PHONE_STATE, "Requires READ_PHONE_STATE");
        return mPhone.getLine1Number();
    
public java.lang.StringgetSimSerialNumber()
Retrieves the serial number of the SIM, if applicable.

        mContext.enforceCallingOrSelfPermission(READ_PHONE_STATE, "Requires READ_PHONE_STATE");
        return mPhone.getSimSerialNumber();
    
public java.lang.StringgetSubscriberId()
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.StringgetVoiceMailAlphaTag()
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.StringgetVoiceMailNumber()
Retrieves the voice mail number.

        mContext.enforceCallingOrSelfPermission(READ_PHONE_STATE, "Requires READ_PHONE_STATE");
        return (String) mPhone.getVoiceMailNumber();