Telephony.MmsSms

public static final class Telephony.MmsSms
extends Object implements BaseColumns

java.lang.Object
   ↳ android.provider.Telephony.MmsSms


Contains all MMS and SMS messages.

Summary

Nested classes

class Telephony.MmsSms.PendingMessages

Contains pending messages info. 

Constants

int ERR_TYPE_GENERIC

Error type: generic transient error.

int ERR_TYPE_GENERIC_PERMANENT

Error type: permanent error (along with all higher error values).

int ERR_TYPE_MMS_PROTO_PERMANENT

Error type: MMS protocol permanent error.

int ERR_TYPE_MMS_PROTO_TRANSIENT

Error type: MMS protocol transient error.

int ERR_TYPE_SMS_PROTO_PERMANENT

Error type: SMS protocol permanent error.

int ERR_TYPE_SMS_PROTO_TRANSIENT

Error type: SMS protocol transient error.

int ERR_TYPE_TRANSPORT_FAILURE

Error type: transport failure.

int MMS_PROTO

MMS protocol type.

int NO_ERROR

Error type: no error.

int SMS_PROTO

SMS protocol type.

String TYPE_DISCRIMINATOR_COLUMN

The column to distinguish SMS and MMS messages in query results.

Inherited constants

Fields

public static final Uri CONTENT_CONVERSATIONS_URI

The content:// style URL for this table, by conversation.

public static final Uri CONTENT_DRAFT_URI

The content:// style URL for draft messages in this table.

public static final Uri CONTENT_FILTER_BYPHONE_URI

The content:// style URL for this table, by phone number.

public static final Uri CONTENT_LOCKED_URI

The content:// style URL for locked messages in this table.

public static final Uri CONTENT_UNDELIVERED_URI

The content:// style URL for undelivered messages in this table.

public static final Uri CONTENT_URI

The content:// style URL for this table.

public static final Uri SEARCH_URI

Pass in a query parameter called "pattern" which is the text to search for.

Inherited methods

Constants

ERR_TYPE_GENERIC

Added in API level 19
public static final int ERR_TYPE_GENERIC

Error type: generic transient error.

Constant Value: 1 (0x00000001)

ERR_TYPE_GENERIC_PERMANENT

Added in API level 19
public static final int ERR_TYPE_GENERIC_PERMANENT

Error type: permanent error (along with all higher error values).

Constant Value: 10 (0x0000000a)

ERR_TYPE_MMS_PROTO_PERMANENT

Added in API level 19
public static final int ERR_TYPE_MMS_PROTO_PERMANENT

Error type: MMS protocol permanent error.

Constant Value: 12 (0x0000000c)

ERR_TYPE_MMS_PROTO_TRANSIENT

Added in API level 19
public static final int ERR_TYPE_MMS_PROTO_TRANSIENT

Error type: MMS protocol transient error.

Constant Value: 3 (0x00000003)

ERR_TYPE_SMS_PROTO_PERMANENT

Added in API level 19
public static final int ERR_TYPE_SMS_PROTO_PERMANENT

Error type: SMS protocol permanent error.

Constant Value: 11 (0x0000000b)

ERR_TYPE_SMS_PROTO_TRANSIENT

Added in API level 19
public static final int ERR_TYPE_SMS_PROTO_TRANSIENT

Error type: SMS protocol transient error.

Constant Value: 2 (0x00000002)

ERR_TYPE_TRANSPORT_FAILURE

Added in API level 19
public static final int ERR_TYPE_TRANSPORT_FAILURE

Error type: transport failure.

Constant Value: 4 (0x00000004)

MMS_PROTO

Added in API level 19
public static final int MMS_PROTO

MMS protocol type.

Constant Value: 1 (0x00000001)

NO_ERROR

Added in API level 19
public static final int NO_ERROR

Error type: no error.

Constant Value: 0 (0x00000000)

SMS_PROTO

Added in API level 19
public static final int SMS_PROTO

SMS protocol type.

Constant Value: 0 (0x00000000)

TYPE_DISCRIMINATOR_COLUMN

Added in API level 19
public static final String TYPE_DISCRIMINATOR_COLUMN

The column to distinguish SMS and MMS messages in query results.

Constant Value: "transport_type"

Fields

CONTENT_CONVERSATIONS_URI

Added in API level 19
public static final Uri CONTENT_CONVERSATIONS_URI

The content:// style URL for this table, by conversation.

CONTENT_DRAFT_URI

Added in API level 19
public static final Uri CONTENT_DRAFT_URI

The content:// style URL for draft messages in this table.

CONTENT_FILTER_BYPHONE_URI

Added in API level 19
public static final Uri CONTENT_FILTER_BYPHONE_URI

The content:// style URL for this table, by phone number.

CONTENT_LOCKED_URI

Added in API level 19
public static final Uri CONTENT_LOCKED_URI

The content:// style URL for locked messages in this table.

This Uri is used to check at most one locked message found in the union of MMS and SMS messages. Also this will return only _id column in response.

CONTENT_UNDELIVERED_URI

Added in API level 19
public static final Uri CONTENT_UNDELIVERED_URI

The content:// style URL for undelivered messages in this table.

CONTENT_URI

Added in API level 19
public static final Uri CONTENT_URI

The content:// style URL for this table.

SEARCH_URI

Added in API level 19
public static final Uri SEARCH_URI

Pass in a query parameter called "pattern" which is the text to search for. The sort order is fixed to be: thread_id ASC, date DESC.