Added in API level 19

TextBasedSmsColumns

interface TextBasedSmsColumns
android.provider.Telephony.TextBasedSmsColumns

Base columns for tables that contain text-based SMSs.

Summary

Constants
static String

The address of the other party.

static String

The body of the message.

static String

The identity of the sender of a sent message.

static String

The date the message was received.

static String

The date the message was sent.

static String

Error code associated with sending or receiving this message

static String

Is the message locked?

static Int

Message type: all messages.

static Int

Message type: drafts.

static Int

Message type: failed outgoing message.

static Int

Message type: inbox.

static Int

Message type: outbox.

static Int

Message type: queued to send later.

static Int

Message type: sent messages.

static String

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

static String

The protocol identifier code.

static String

Has the message been read?

static String

Is the TP-Reply-Path flag set?

static String

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

static String

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

static String

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

static Int

TP-Status: complete.

static Int

TP-Status: failed.

static Int

TP-Status: no status received.

static Int

TP-Status: pending.

static String

The subject of the message, if present.

static String

The subscription to which the message belongs to.

static String

The thread ID of the message.

static String

The type of message.

Constants

ADDRESS

Added in API level 19
static val ADDRESS: String

The address of the other party.

Type: TEXT

Value: "address"

BODY

Added in API level 19
static val BODY: String

The body of the message.

Type: TEXT

Value: "body"

CREATOR

Added in API level 21
static val CREATOR: String

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

Value: "creator"

DATE

Added in API level 19
static val DATE: String

The date the message was received.

Type: INTEGER (long)

Value: "date"

DATE_SENT

Added in API level 19
static val DATE_SENT: String

The date the message was sent.

Type: INTEGER (long)

Value: "date_sent"

ERROR_CODE

Added in API level 19
static val ERROR_CODE: String

Error code associated with sending or receiving this message

Type: INTEGER

Value: "error_code"

LOCKED

Added in API level 19
static val LOCKED: String

Is the message locked?

Type: INTEGER (boolean)

Value: "locked"

MESSAGE_TYPE_ALL

Added in API level 19
static val MESSAGE_TYPE_ALL: Int

Message type: all messages.

Value: 0

MESSAGE_TYPE_DRAFT

Added in API level 19
static val MESSAGE_TYPE_DRAFT: Int

Message type: drafts.

Value: 3

MESSAGE_TYPE_FAILED

Added in API level 19
static val MESSAGE_TYPE_FAILED: Int

Message type: failed outgoing message.

Value: 5

MESSAGE_TYPE_INBOX

Added in API level 19
static val MESSAGE_TYPE_INBOX: Int

Message type: inbox.

Value: 1

MESSAGE_TYPE_OUTBOX

Added in API level 19
static val MESSAGE_TYPE_OUTBOX: Int

Message type: outbox.

Value: 4

MESSAGE_TYPE_QUEUED

Added in API level 19
static val MESSAGE_TYPE_QUEUED: Int

Message type: queued to send later.

Value: 6

MESSAGE_TYPE_SENT

Added in API level 19
static val MESSAGE_TYPE_SENT: Int

Message type: sent messages.

Value: 2

PERSON

Added in API level 19
static val PERSON: String

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

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

Value: "person"

PROTOCOL

Added in API level 19
static val PROTOCOL: String

The protocol identifier code.

Type: INTEGER

Value: "protocol"

READ

Added in API level 19
static val READ: String

Has the message been read?

Type: INTEGER (boolean)

Value: "read"

REPLY_PATH_PRESENT

Added in API level 19
static val REPLY_PATH_PRESENT: String

Is the TP-Reply-Path flag set?

Type: BOOLEAN

Value: "reply_path_present"

SEEN

Added in API level 19
static val SEEN: String

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

Type: INTEGER (boolean)

Value: "seen"

SERVICE_CENTER

Added in API level 19
static val SERVICE_CENTER: String

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

Type: TEXT

Value: "service_center"

STATUS

Added in API level 19
static val STATUS: String

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

Type: INTEGER

Value: "status"

STATUS_COMPLETE

Added in API level 19
static val STATUS_COMPLETE: Int

TP-Status: complete.

Value: 0

STATUS_FAILED

Added in API level 19
static val STATUS_FAILED: Int

TP-Status: failed.

Value: 64

STATUS_NONE

Added in API level 19
static val STATUS_NONE: Int

TP-Status: no status received.

Value: -1

STATUS_PENDING

Added in API level 19
static val STATUS_PENDING: Int

TP-Status: pending.

Value: 32

SUBJECT

Added in API level 19
static val SUBJECT: String

The subject of the message, if present.

Type: TEXT

Value: "subject"

SUBSCRIPTION_ID

Added in API level 22
static val SUBSCRIPTION_ID: String

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

Type: INTEGER (long)

Value: "sub_id"

THREAD_ID

Added in API level 19
static val THREAD_ID: String

The thread ID of the message.

Type: INTEGER

Value: "thread_id"

TYPE

Added in API level 19
static val TYPE: String

The type of message.

Type: INTEGER

Value: "type"