android.provider
Class Telephony.Sms.Inbox
java.lang.Object
android.provider.Telephony.Sms.Inbox
- All Implemented Interfaces:
- BaseColumns, Telephony.TextBasedSmsColumns
- Enclosing class:
- Telephony.Sms
public static final class Telephony.Sms.Inbox
- extends Object
- implements BaseColumns, Telephony.TextBasedSmsColumns
Contains all text based SMS messages in the SMS app's inbox.
| Fields inherited from interface android.provider.Telephony.TextBasedSmsColumns |
ADDRESS, BODY, DATE, MESSAGE_TYPE_ALL, MESSAGE_TYPE_DRAFT, MESSAGE_TYPE_FAILED, MESSAGE_TYPE_INBOX, MESSAGE_TYPE_OUTBOX, MESSAGE_TYPE_QUEUED, MESSAGE_TYPE_SENT, PERSON, PERSON_ID, PROTOCOL, READ, REPLY_PATH_PRESENT, SERVICE_CENTER, STATUS, STATUS_COMPLETE, STATUS_FAILED, STATUS_NONE, STATUS_PENDING, SUBJECT, THREAD_ID, TYPE |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CONTENT_URI
public static final Uri CONTENT_URI
- The content:// style URL for this table
DEFAULT_SORT_ORDER
public static final String DEFAULT_SORT_ORDER
- The default sort order for this table
- See Also:
- Constant Field Values
Telephony.Sms.Inbox
public Telephony.Sms.Inbox()
addMessage
public static Uri addMessage(ContentResolver resolver,
String address,
String body,
String subject,
Long date,
boolean read)
- Add an SMS to the Draft box.
- Parameters:
resolver - the content resolver to useaddress - the address of the senderbody - the body of the messagesubject - the psuedo-subject of the messagedate - the timestamp for the messageread - true if the message has been read, false if not
- Returns:
- the URI for the new message
Please submit a feedback, bug or feature