android.provider
Class Telephony.Sms.Draft
java.lang.Object
android.provider.Telephony.Sms.Draft
- All Implemented Interfaces:
- BaseColumns, Telephony.TextBasedSmsColumns
- Enclosing class:
- Telephony.Sms
public static final class Telephony.Sms.Draft
- extends Object
- implements BaseColumns, Telephony.TextBasedSmsColumns
Contains all sent text based SMS messages in the SMS app's.
| 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.Draft
public Telephony.Sms.Draft()
addMessage
public static Uri addMessage(ContentResolver resolver,
String address,
String body,
String subject,
Long date)
- 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 message
- Returns:
- the URI for the new message
saveMessage
public static boolean saveMessage(ContentResolver resolver,
Uri uri,
String body)
- Save over an existing draft message.
- Parameters:
resolver - the content resolver to useuri - of existing messagebody - the new body for the draft message
- Returns:
- true is successful, false otherwise
Please submit a feedback, bug or feature