Java android.telephony SmsMessage fields, constructors, methods, implement or subclass

Example usage for Java android.telephony SmsMessage fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for android.telephony SmsMessage.

The text is from its open source code.

Method

int[]calculateLength(CharSequence msgBody, boolean use7bitOnly)
Calculates the number of SMS's required to encode the message body and the number of characters remaining until the next message.
int[]calculateLength(String messageBody, boolean use7bitOnly)
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.
SmsMessagecreateFromPdu(byte[] pdu, String format)
Create an SmsMessage from a raw PDU with the specified message format.
SmsMessagecreateFromPdu(byte[] pdu)
Create an SmsMessage from a raw PDU.
StringgetDisplayMessageBody()
Returns the message body, or email message body if this message was from an email gateway.
StringgetDisplayOriginatingAddress()
Returns the originating address, or email from address if this message was from an email gateway.
StringgetMessageBody()
Returns the message body as a String, if it exists and is text based.
StringgetOriginatingAddress()
Returns the originating address (sender) of this SMS message in String form or null if unavailable.
StringgetPseudoSubject()
Unofficial convention of a subject line enclosed in parens empty string if not present
StringgetServiceCenterAddress()
Returns the address of the SMS service center that relayed this message or null if there is none.
intgetStatus()
GSM: For an SMS-STATUS-REPORT message, this returns the status field from the status report.
intgetStatusOnIcc()
Returns the status of the message on the ICC (read, unread, sent, unsent).
longgetTimestampMillis()
Returns the service centre timestamp in currentTimeMillis() format