@Deprecated public class SmsMessage extends Object
Modifier and Type | Class and Description |
---|---|
static class |
SmsMessage.MessageClass
Deprecated.
Use android.telephony.SmsMessage.
|
static class |
SmsMessage.SubmitPdu
Deprecated.
Use android.telephony.SmsMessage.
|
Modifier and Type | Field and Description |
---|---|
static int |
ENCODING_16BIT
Deprecated.
Use android.telephony.SmsMessage.
|
static int |
ENCODING_7BIT
Deprecated.
Use android.telephony.SmsMessage.
|
static int |
ENCODING_8BIT
Deprecated.
Use android.telephony.SmsMessage.
|
static int |
ENCODING_UNKNOWN
Deprecated.
Use android.telephony.SmsMessage.
|
static int |
MAX_USER_DATA_BYTES
Deprecated.
Use android.telephony.SmsMessage.
|
static int |
MAX_USER_DATA_BYTES_WITH_HEADER
Deprecated.
Use android.telephony.SmsMessage.
|
static int |
MAX_USER_DATA_SEPTETS
Deprecated.
Use android.telephony.SmsMessage.
|
static int |
MAX_USER_DATA_SEPTETS_WITH_HEADER
Deprecated.
Use android.telephony.SmsMessage.
|
com.android.internal.telephony.SmsMessageBase |
mWrappedSmsMessage
Deprecated.
Use android.telephony.SmsMessage.
|
Constructor and Description |
---|
SmsMessage()
Deprecated.
Use android.telephony.SmsMessage.
|
Modifier and Type | Method and Description |
---|---|
static int[] |
calculateLength(CharSequence messageBody,
boolean use7bitOnly)
Deprecated.
Use android.telephony.SmsMessage.
|
static int[] |
calculateLength(String messageBody,
boolean use7bitOnly)
Deprecated.
Use android.telephony.SmsMessage.
|
static SmsMessage |
createFromPdu(byte[] pdu)
Deprecated.
Use android.telephony.SmsMessage.
|
String |
getDisplayMessageBody()
Deprecated.
Use android.telephony.SmsMessage.
|
String |
getDisplayOriginatingAddress()
Deprecated.
Use android.telephony.SmsMessage.
|
String |
getEmailBody()
Deprecated.
Use android.telephony.SmsMessage.
|
String |
getEmailFrom()
Deprecated.
Use android.telephony.SmsMessage.
|
int |
getIndexOnIcc()
Deprecated.
Use android.telephony.SmsMessage.
|
int |
getIndexOnSim()
Deprecated.
Use android.telephony.SmsMessage and getIndexOnIcc instead.
|
String |
getMessageBody()
Deprecated.
Use android.telephony.SmsMessage.
|
SmsMessage.MessageClass |
getMessageClass()
Deprecated.
Use android.telephony.SmsMessage.
|
String |
getOriginatingAddress()
Deprecated.
Use android.telephony.SmsMessage.
|
byte[] |
getPdu()
Deprecated.
Use android.telephony.SmsMessage.
|
int |
getProtocolIdentifier()
Deprecated.
Use android.telephony.SmsMessage.
|
String |
getPseudoSubject()
Deprecated.
Use android.telephony.SmsMessage.
|
String |
getServiceCenterAddress()
Deprecated.
Use android.telephony.SmsMessage.
|
int |
getStatus()
Deprecated.
Use android.telephony.SmsMessage.
|
int |
getStatusOnIcc()
Deprecated.
Use android.telephony.SmsMessage.
|
int |
getStatusOnSim()
Deprecated.
Use android.telephony.SmsMessage and getStatusOnIcc instead.
|
static SmsMessage.SubmitPdu |
getSubmitPdu(String scAddress,
String destinationAddress,
short destinationPort,
byte[] data,
boolean statusReportRequested)
Deprecated.
Use android.telephony.SmsMessage.
|
static SmsMessage.SubmitPdu |
getSubmitPdu(String scAddress,
String destinationAddress,
String message,
boolean statusReportRequested)
Deprecated.
Use android.telephony.SmsMessage.
|
static SmsMessage.SubmitPdu |
getSubmitPdu(String scAddress,
String destinationAddress,
String message,
boolean statusReportRequested,
byte[] header)
Deprecated.
Use android.telephony.SmsMessage.
|
long |
getTimestampMillis()
Deprecated.
Use android.telephony.SmsMessage.
|
static int |
getTPLayerLengthForPDU(String pdu)
Deprecated.
Use android.telephony.SmsMessage.
|
byte[] |
getUserData()
Deprecated.
Use android.telephony.SmsMessage.
|
boolean |
isCphsMwiMessage()
Deprecated.
Use android.telephony.SmsMessage.
|
boolean |
isEmail()
Deprecated.
Use android.telephony.SmsMessage.
|
boolean |
isMWIClearMessage()
Deprecated.
Use android.telephony.SmsMessage.
|
boolean |
isMwiDontStore()
Deprecated.
Use android.telephony.SmsMessage.
|
boolean |
isMWISetMessage()
Deprecated.
Use android.telephony.SmsMessage.
|
boolean |
isReplace()
Deprecated.
Use android.telephony.SmsMessage.
|
boolean |
isReplyPathPresent()
Deprecated.
Use android.telephony.SmsMessage.
|
boolean |
isStatusReportMessage()
Deprecated.
Use android.telephony.SmsMessage.
|
@Deprecated public static final int ENCODING_UNKNOWN
@Deprecated public static final int ENCODING_7BIT
@Deprecated public static final int ENCODING_8BIT
@Deprecated public static final int ENCODING_16BIT
@Deprecated public static final int MAX_USER_DATA_BYTES
@Deprecated public static final int MAX_USER_DATA_BYTES_WITH_HEADER
@Deprecated public static final int MAX_USER_DATA_SEPTETS
@Deprecated public static final int MAX_USER_DATA_SEPTETS_WITH_HEADER
@Deprecated public com.android.internal.telephony.SmsMessageBase mWrappedSmsMessage
@Deprecated public SmsMessage()
@Deprecated public static SmsMessage createFromPdu(byte[] pdu)
@Deprecated public static int getTPLayerLengthForPDU(String pdu)
@Deprecated public static int[] calculateLength(CharSequence messageBody, boolean use7bitOnly)
messageBody
- the message to encodeuse7bitOnly
- if true, characters that are not part of the GSM
alphabet are counted as a single space char. If false, a
messageBody containing non-GSM alphabet characters is calculated
for 16-bit encoding.@Deprecated public static int[] calculateLength(String messageBody, boolean use7bitOnly)
messageBody
- the message to encodeuse7bitOnly
- if true, characters that are not part of the GSM
alphabet are counted as a single space char. If false, a
messageBody containing non-GSM alphabet characters is calculated
for 16-bit encoding.@Deprecated public static SmsMessage.SubmitPdu getSubmitPdu(String scAddress, String destinationAddress, String message, boolean statusReportRequested, byte[] header)
scAddress
- Service Centre address. Null means use default.SubmitPdu
containing the encoded SC
address, if applicable, and the encoded message.
Returns null on encode error.@Deprecated public static SmsMessage.SubmitPdu getSubmitPdu(String scAddress, String destinationAddress, String message, boolean statusReportRequested)
scAddress
- Service Centre address. Null means use default.SubmitPdu
containing the encoded SC
address, if applicable, and the encoded message.
Returns null on encode error.@Deprecated public static SmsMessage.SubmitPdu getSubmitPdu(String scAddress, String destinationAddress, short destinationPort, byte[] data, boolean statusReportRequested)
scAddress
- Service Centre address. null == use defaultdestinationAddress
- the address of the destination for the messagedestinationPort
- the port to deliver the message to at the
destinationdata
- the dat for the messageSubmitPdu
containing the encoded SC
address, if applicable, and the encoded message.
Returns null on encode error.@Deprecated public String getServiceCenterAddress()
@Deprecated public String getOriginatingAddress()
@Deprecated public String getDisplayOriginatingAddress()
@Deprecated public String getMessageBody()
@Deprecated public SmsMessage.MessageClass getMessageClass()
@Deprecated public String getDisplayMessageBody()
@Deprecated public String getPseudoSubject()
@Deprecated public long getTimestampMillis()
@Deprecated public boolean isEmail()
@Deprecated public String getEmailBody()
@Deprecated public String getEmailFrom()
@Deprecated public int getProtocolIdentifier()
@Deprecated public boolean isReplace()
@Deprecated public boolean isCphsMwiMessage()
@Deprecated public boolean isMWIClearMessage()
@Deprecated public boolean isMWISetMessage()
@Deprecated public boolean isMwiDontStore()
@Deprecated public byte[] getUserData()
@Deprecated public byte[] getPdu()
@Deprecated public int getStatusOnSim()
@Deprecated public int getStatusOnIcc()
@Deprecated public int getIndexOnSim()
@Deprecated public int getIndexOnIcc()
@Deprecated public int getStatus()
@Deprecated public boolean isStatusReportMessage()
@Deprecated public boolean isReplyPathPresent()
TP-Reply-Path
bit is set in
this message.