java.lang.Object | |
↳ | android.telephony.gsm.SmsMessage |
This class is deprecated.
Replaced by android.telephony.SmsMessage that supports both GSM and CDMA.
A Short Message Service message.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
SmsMessage.MessageClass | This enum is deprecated. Use android.telephony.SmsMessage. | ||||||||||
SmsMessage.SubmitPdu | This class is deprecated. Use android.telephony.SmsMessage. |
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | ENCODING_16BIT | This constant is deprecated. Use android.telephony.SmsMessage. | |||||||||
int | ENCODING_7BIT | This constant is deprecated. Use android.telephony.SmsMessage. | |||||||||
int | ENCODING_8BIT | This constant is deprecated. Use android.telephony.SmsMessage. | |||||||||
int | ENCODING_UNKNOWN | This constant is deprecated. Use android.telephony.SmsMessage. | |||||||||
int | MAX_USER_DATA_BYTES | This constant is deprecated. Use android.telephony.SmsMessage. | |||||||||
int | MAX_USER_DATA_SEPTETS | This constant is deprecated. Use android.telephony.SmsMessage. | |||||||||
int | MAX_USER_DATA_SEPTETS_WITH_HEADER | This constant is deprecated. Use android.telephony.SmsMessage. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
This constructor is deprecated.
Use android.telephony.SmsMessage.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
This method is deprecated.
Use android.telephony.SmsMessage.
| |||||||||||
This method is deprecated.
Use android.telephony.SmsMessage.
| |||||||||||
This method is deprecated.
Use android.telephony.SmsMessage.
| |||||||||||
This method is deprecated.
Use android.telephony.SmsMessage.
| |||||||||||
This method is deprecated.
Use android.telephony.SmsMessage.
| |||||||||||
This method is deprecated.
Use android.telephony.SmsMessage.
| |||||||||||
This method is deprecated.
Use android.telephony.SmsMessage.
| |||||||||||
This method is deprecated.
Use android.telephony.SmsMessage and getIndexOnIcc instead.
| |||||||||||
This method is deprecated.
Use android.telephony.SmsMessage.
| |||||||||||
This method is deprecated.
Use android.telephony.SmsMessage.
| |||||||||||
This method is deprecated.
Use android.telephony.SmsMessage.
| |||||||||||
This method is deprecated.
Use android.telephony.SmsMessage.
| |||||||||||
This method is deprecated.
Use android.telephony.SmsMessage.
| |||||||||||
This method is deprecated.
Use android.telephony.SmsMessage.
| |||||||||||
This method is deprecated.
Use android.telephony.SmsMessage.
| |||||||||||
This method is deprecated.
Use android.telephony.SmsMessage.
| |||||||||||
This method is deprecated.
Use android.telephony.SmsMessage and getStatusOnIcc instead.
| |||||||||||
This method is deprecated.
Use android.telephony.SmsMessage.
| |||||||||||
This method is deprecated.
Use android.telephony.SmsMessage.
| |||||||||||
This method is deprecated.
Use android.telephony.SmsMessage.
| |||||||||||
This method is deprecated.
Use android.telephony.SmsMessage.
| |||||||||||
This method is deprecated.
Use android.telephony.SmsMessage.
| |||||||||||
This method is deprecated.
Use android.telephony.SmsMessage.
| |||||||||||
This method is deprecated.
Use android.telephony.SmsMessage.
| |||||||||||
This method is deprecated.
Use android.telephony.SmsMessage.
| |||||||||||
This method is deprecated.
Use android.telephony.SmsMessage.
| |||||||||||
This method is deprecated.
Use android.telephony.SmsMessage.
| |||||||||||
This method is deprecated.
Use android.telephony.SmsMessage.
| |||||||||||
This method is deprecated.
Use android.telephony.SmsMessage.
| |||||||||||
This method is deprecated.
Use android.telephony.SmsMessage.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
This constant is deprecated.
Use android.telephony.SmsMessage.
16-bit encoding scheme (see TS 23.038)
This constant is deprecated.
Use android.telephony.SmsMessage.
7-bit encoding scheme (see TS 23.038)
This constant is deprecated.
Use android.telephony.SmsMessage.
8-bit encoding scheme (see TS 23.038)
This constant is deprecated.
Use android.telephony.SmsMessage.
Unknown encoding scheme (see TS 23.038)
This constant is deprecated.
Use android.telephony.SmsMessage.
The maximum number of payload bytes per message
This constant is deprecated.
Use android.telephony.SmsMessage.
The maximum number of payload septets per message
This constant is deprecated.
Use android.telephony.SmsMessage.
The maximum number of payload septets per message if a user data header is present. This assumes the header only contains the CONCATENATED_8_BIT_REFERENCE element.
This constructor is deprecated.
Use android.telephony.SmsMessage.
This method is deprecated.
Use android.telephony.SmsMessage.
Calculates the number of SMS's required to encode the message body and the number of characters remaining until the next message, given the current encoding.
messageBody | the message to encode |
---|---|
use7bitOnly | 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. |
This method is deprecated.
Use android.telephony.SmsMessage.
Calculates the number of SMS's required to encode the message body and the number of characters remaining until the next message, given the current encoding.
messageBody | the message to encode |
---|---|
use7bitOnly | 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. |
This method is deprecated.
Use android.telephony.SmsMessage.
Create an SmsMessage from a raw PDU.
This method is deprecated.
Use android.telephony.SmsMessage.
Returns the message body, or email message body if this message was from an email gateway. Returns null if message body unavailable.
This method is deprecated.
Use android.telephony.SmsMessage.
Returns the originating address, or email from address if this message was from an email gateway. Returns null if originating address unavailable.
This method is deprecated.
Use android.telephony.SmsMessage.
This method is deprecated.
Use android.telephony.SmsMessage.
This method is deprecated.
Use android.telephony.SmsMessage and getIndexOnIcc instead.
Returns the record index of the message on the SIM (1-based index).
This method is deprecated.
Use android.telephony.SmsMessage.
Returns the message body as a String, if it exists and is text based.
This method is deprecated.
Use android.telephony.SmsMessage.
Returns the class of this message.
This method is deprecated.
Use android.telephony.SmsMessage.
Returns the originating address (sender) of this SMS message in String form or null if unavailable
This method is deprecated.
Use android.telephony.SmsMessage.
Returns the raw PDU for the message.
This method is deprecated.
Use android.telephony.SmsMessage.
Get protocol identifier.
This method is deprecated.
Use android.telephony.SmsMessage.
Unofficial convention of a subject line enclosed in parens empty string if not present
This method is deprecated.
Use android.telephony.SmsMessage.
Returns the address of the SMS service center that relayed this message or null if there is none.
This method is deprecated.
Use android.telephony.SmsMessage.
GSM: For an SMS-STATUS-REPORT message, this returns the status field from the status report. This field indicates the status of a previously submitted SMS, if requested. See TS 23.040, 9.2.3.15 TP-Status for a description of values. CDMA: For not interfering with status codes from GSM, the value is shifted to the bits 31-16. The value is composed of an error class (bits 25-24) and a status code (bits 23-16). Possible codes are described in C.S0015-B, v2.0, 4.5.21.
This method is deprecated.
Use android.telephony.SmsMessage and getStatusOnIcc instead.
Returns the status of the message on the SIM (read, unread, sent, unsent).
This method is deprecated.
Use android.telephony.SmsMessage.
Get an SMS-SUBMIT PDU for a data message to a destination address & port
scAddress | Service Centre address. null == use default |
---|---|
destinationAddress | the address of the destination for the message |
destinationPort | the port to deliver the message to at the destination |
data | the dat for the message |
SubmitPdu
containing the encoded SC
address, if applicable, and the encoded message.
Returns null on encode error.
This method is deprecated.
Use android.telephony.SmsMessage.
Get an SMS-SUBMIT PDU for a destination address and a message
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.
This method is deprecated.
Use android.telephony.SmsMessage.
Get the TP-Layer-Length for the given SMS-SUBMIT PDU Basically, the length in bytes (not hex chars) less the SMSC header
This method is deprecated.
Use android.telephony.SmsMessage.
Returns the service centre timestamp in currentTimeMillis() format
This method is deprecated.
Use android.telephony.SmsMessage.
returns the user data section minus the user data header if one was present.
This method is deprecated.
Use android.telephony.SmsMessage.
Returns true for CPHS MWI toggle message.
This method is deprecated.
Use android.telephony.SmsMessage.
Returns true if message is an email.
This method is deprecated.
Use android.telephony.SmsMessage.
returns true if this message is a CPHS voicemail / message waiting indicator (MWI) clear message
This method is deprecated.
Use android.telephony.SmsMessage.
returns true if this message is a CPHS voicemail / message waiting indicator (MWI) set message
This method is deprecated.
Use android.telephony.SmsMessage.
returns true if this message is a "Message Waiting Indication Group: Discard Message" notification and should not be stored.
This method is deprecated.
Use android.telephony.SmsMessage.
See TS 23.040 9.2.3.9 returns true if this is a "replace short message" SMS
This method is deprecated.
Use android.telephony.SmsMessage.
Returns true iff the TP-Reply-Path
bit is set in
this message.
This method is deprecated.
Use android.telephony.SmsMessage.
Return true iff the message is a SMS-STATUS-REPORT message.