FileDocCategorySizeDatePackage
SmsAddress.javaAPI DocAndroid 5.1 API2078Thu Mar 12 22:22:54 GMT 2015com.android.internal.telephony

SmsAddress

public abstract class SmsAddress extends Object

Fields Summary
public static final int
TON_UNKNOWN
public static final int
TON_INTERNATIONAL
public static final int
TON_NATIONAL
public static final int
TON_NETWORK
public static final int
TON_SUBSCRIBER
public static final int
TON_ALPHANUMERIC
public static final int
TON_ABBREVIATED
public int
ton
public String
address
public byte[]
origBytes
Constructors Summary
Methods Summary
public booleancouldBeEmailGateway()

        // Some carriers seems to send email gateway messages in this form:
        // from: an UNKNOWN TON, 3 or 4 digits long, beginning with a 5
        // PID: 0x00, Data coding scheme 0x03
        // So we just attempt to treat any message from an address length <= 4
        // as an email gateway

        return address.length() <= 4;
    
public java.lang.StringgetAddressString()
Returns the address of the SMS message in String form or null if unavailable


                       
       
        return address;
    
public booleanisAlphanumeric()
Returns true if this is an alphanumeric address

        return ton == TON_ALPHANUMERIC;
    
public booleanisNetworkSpecific()
Returns true if this is a network address

        return ton == TON_NETWORK;