Most visited

Recently visited

Added in API level 19

Telephony.TextBasedSmsColumns

public static interface Telephony.TextBasedSmsColumns

android.provider.Telephony.TextBasedSmsColumns
Known Indirect Subclasses


Base columns for tables that contain text-based SMSs.

Summary

Constants

String ADDRESS

The address of the other party.

String BODY

The body of the message.

String CREATOR

The identity of the sender of a sent message.

String DATE

The date the message was received.

String DATE_SENT

The date the message was sent.

String ERROR_CODE

Error code associated with sending or receiving this message

Type: INTEGER

String LOCKED

Is the message locked?

Type: INTEGER (boolean)

int MESSAGE_TYPE_ALL

Message type: all messages.

int MESSAGE_TYPE_DRAFT

Message type: drafts.

int MESSAGE_TYPE_FAILED

Message type: failed outgoing message.

int MESSAGE_TYPE_INBOX

Message type: inbox.

int MESSAGE_TYPE_OUTBOX

Message type: outbox.

int MESSAGE_TYPE_QUEUED

Message type: queued to send later.

int MESSAGE_TYPE_SENT

Message type: sent messages.

String PERSON

The ID of the sender of the conversation, if present.

String PROTOCOL

The protocol identifier code.

String READ

Has the message been read?

Type: INTEGER (boolean)

String REPLY_PATH_PRESENT

Is the TP-Reply-Path flag set?

Type: BOOLEAN

String SEEN

Has the message been seen by the user? The "seen" flag determines whether we need to show a notification.

String SERVICE_CENTER

The service center (SC) through which to send the message, if present.

String STATUS

TP-Status value for the message, or -1 if no status has been received.

int STATUS_COMPLETE

TP-Status: complete.

int STATUS_FAILED

TP-Status: failed.

int STATUS_NONE

TP-Status: no status received.

int STATUS_PENDING

TP-Status: pending.

String SUBJECT

The subject of the message, if present.

String SUBSCRIPTION_ID

The subscription to which the message belongs to.

String THREAD_ID

The thread ID of the message.

String TYPE

The type of message.

Constants

ADDRESS

Added in API level 19
String ADDRESS

The address of the other party.

Type: TEXT

Constant Value: "address"

BODY

Added in API level 19
String BODY

The body of the message.

Type: TEXT

Constant Value: "body"

CREATOR

Added in API level 21
String CREATOR

The identity of the sender of a sent message. It is usually the package name of the app which sends the message.

Note: This column is read-only. It is set by the provider and can not be changed by apps.

Type: TEXT

Constant Value: "creator"

DATE

Added in API level 19
String DATE

The date the message was received.

Type: INTEGER (long)

Constant Value: "date"

DATE_SENT

Added in API level 19
String DATE_SENT

The date the message was sent.

Type: INTEGER (long)

Constant Value: "date_sent"

ERROR_CODE

Added in API level 19
String ERROR_CODE

Error code associated with sending or receiving this message

Type: INTEGER

Constant Value: "error_code"

LOCKED

Added in API level 19
String LOCKED

Is the message locked?

Type: INTEGER (boolean)

Constant Value: "locked"

MESSAGE_TYPE_ALL

Added in API level 19
int MESSAGE_TYPE_ALL

Message type: all messages.

Constant Value: 0 (0x00000000)

MESSAGE_TYPE_DRAFT

Added in API level 19
int MESSAGE_TYPE_DRAFT

Message type: drafts.

Constant Value: 3 (0x00000003)

MESSAGE_TYPE_FAILED

Added in API level 19
int MESSAGE_TYPE_FAILED

Message type: failed outgoing message.

Constant Value: 5 (0x00000005)

MESSAGE_TYPE_INBOX

Added in API level 19
int MESSAGE_TYPE_INBOX

Message type: inbox.

Constant Value: 1 (0x00000001)

MESSAGE_TYPE_OUTBOX

Added in API level 19
int MESSAGE_TYPE_OUTBOX

Message type: outbox.

Constant Value: 4 (0x00000004)

MESSAGE_TYPE_QUEUED

Added in API level 19
int MESSAGE_TYPE_QUEUED

Message type: queued to send later.

Constant Value: 6 (0x00000006)

MESSAGE_TYPE_SENT

Added in API level 19
int MESSAGE_TYPE_SENT

Message type: sent messages.

Constant Value: 2 (0x00000002)

PERSON

Added in API level 19
String PERSON

The ID of the sender of the conversation, if present.

Type: INTEGER (reference to item in content://contacts/people)

Constant Value: "person"

PROTOCOL

Added in API level 19
String PROTOCOL

The protocol identifier code.

Type: INTEGER

Constant Value: "protocol"

READ

Added in API level 19
String READ

Has the message been read?

Type: INTEGER (boolean)

Constant Value: "read"

REPLY_PATH_PRESENT

Added in API level 19
String REPLY_PATH_PRESENT

Is the TP-Reply-Path flag set?

Type: BOOLEAN

Constant Value: "reply_path_present"

SEEN

Added in API level 19
String SEEN

Has the message been seen by the user? The "seen" flag determines whether we need to show a notification.

Type: INTEGER (boolean)

Constant Value: "seen"

SERVICE_CENTER

Added in API level 19
String SERVICE_CENTER

The service center (SC) through which to send the message, if present.

Type: TEXT

Constant Value: "service_center"

STATUS

Added in API level 19
String STATUS

TP-Status value for the message, or -1 if no status has been received.

Type: INTEGER

Constant Value: "status"

STATUS_COMPLETE

Added in API level 19
int STATUS_COMPLETE

TP-Status: complete.

Constant Value: 0 (0x00000000)

STATUS_FAILED

Added in API level 19
int STATUS_FAILED

TP-Status: failed.

Constant Value: 64 (0x00000040)

STATUS_NONE

Added in API level 19
int STATUS_NONE

TP-Status: no status received.

Constant Value: -1 (0xffffffff)

STATUS_PENDING

Added in API level 19
int STATUS_PENDING

TP-Status: pending.

Constant Value: 32 (0x00000020)

SUBJECT

Added in API level 19
String SUBJECT

The subject of the message, if present.

Type: TEXT

Constant Value: "subject"

SUBSCRIPTION_ID

Added in API level 22
String SUBSCRIPTION_ID

The subscription to which the message belongs to. Its value will be < 0 if the sub id cannot be determined.

Type: INTEGER (long)

Constant Value: "sub_id"

THREAD_ID

Added in API level 19
String THREAD_ID

The thread ID of the message.

Type: INTEGER

Constant Value: "thread_id"

TYPE

Added in API level 19
String TYPE

The type of message.

Type: INTEGER

Constant Value: "type"

Hooray!