Build 1.0_r1(from source)

android.provider
Class Telephony.Sms.Draft

java.lang.Object
  extended by 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.


Field Summary
static Uri CONTENT_URI
          The content:// style URL for this table
static String DEFAULT_SORT_ORDER
          The default sort order for this table
 
Fields inherited from interface android.provider.BaseColumns
_COUNT, _ID
 
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
 
Constructor Summary
Telephony.Sms.Draft()
           
 
Method Summary
static Uri addMessage(ContentResolver resolver, String address, String body, String subject, Long date)
          Add an SMS to the Draft box.
static boolean saveMessage(ContentResolver resolver, Uri uri, String body)
          Save over an existing draft message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

Telephony.Sms.Draft

public Telephony.Sms.Draft()
Method Detail

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 use
address - the address of the sender
body - the body of the message
subject - the psuedo-subject of the message
date - 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 use
uri - of existing message
body - the new body for the draft message
Returns:
true is successful, false otherwise

Build 1.0_r1(from source)

Please submit a feedback, bug or feature