Example usage for Java android.telephony SmsMessage fields, constructors, methods, implement or subclass
The text is from its open source code.
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. |
SmsMessage | createFromPdu(byte[] pdu, String format) Create an SmsMessage from a raw PDU with the specified message format. |
SmsMessage | createFromPdu(byte[] pdu) Create an SmsMessage from a raw PDU. |
String | getDisplayMessageBody() Returns the message body, or email message body if this message was from an email gateway. |
String | getDisplayOriginatingAddress() Returns the originating address, or email from address if this message was from an email gateway. |
String | getMessageBody() Returns the message body as a String, if it exists and is text based. |
String | getOriginatingAddress() Returns the originating address (sender) of this SMS message in String form or null if unavailable. |
String | getPseudoSubject() Unofficial convention of a subject line enclosed in parens empty string if not present |
String | getServiceCenterAddress() Returns the address of the SMS service center that relayed this message or null if there is none. |
int | getStatus() GSM: For an SMS-STATUS-REPORT message, this returns the status field from the status report. |
int | getStatusOnIcc() Returns the status of the message on the ICC (read, unread, sent, unsent). |
long | getTimestampMillis() Returns the service centre timestamp in currentTimeMillis() format |