# Telephony.MmsSms

Added in[API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Summary:[Nested Classes](https://developer.android.com/reference/android/provider/Telephony.MmsSms#nestedclasses)\|[Constants](https://developer.android.com/reference/android/provider/Telephony.MmsSms#constants)\|[Inherited Constants](https://developer.android.com/reference/android/provider/Telephony.MmsSms#inhconstants)\|[Fields](https://developer.android.com/reference/android/provider/Telephony.MmsSms#lfields)\|[Inherited Methods](https://developer.android.com/reference/android/provider/Telephony.MmsSms#inhmethods)  

# Telephony.MmsSms

*** ** * ** ***

[Kotlin](https://developer.android.com/reference/kotlin/android/provider/Telephony.MmsSms "View this page in Kotlin")\|Java

`
public
static
final

class
Telephony.MmsSms
`  
`

extends `[Object](https://developer.android.com/reference/java/lang/Object)`


``


implements

`[BaseColumns](https://developer.android.com/reference/android/provider/BaseColumns)`


`

|---|-----------------------------------|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) ||
| ↳ | android.provider.Telephony.MmsSms |

<br />

*** ** * ** ***

Contains all MMS and SMS messages.

## Summary

|                                                                           ### Nested classes                                                                            ||
|----------|---------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` class` | [Telephony.MmsSms.PendingMessages](https://developer.android.com/reference/android/provider/Telephony.MmsSms.PendingMessages) Contains pending messages info. |

|                                                                                                                              ### Constants                                                                                                                               ||
|--------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `int`                                                              | [ERR_TYPE_GENERIC](https://developer.android.com/reference/android/provider/Telephony.MmsSms#ERR_TYPE_GENERIC) Error type: generic transient error.                                                  |
| `int`                                                              | [ERR_TYPE_GENERIC_PERMANENT](https://developer.android.com/reference/android/provider/Telephony.MmsSms#ERR_TYPE_GENERIC_PERMANENT) Error type: permanent error (along with all higher error values). |
| `int`                                                              | [ERR_TYPE_MMS_PROTO_PERMANENT](https://developer.android.com/reference/android/provider/Telephony.MmsSms#ERR_TYPE_MMS_PROTO_PERMANENT) Error type: MMS protocol permanent error.                     |
| `int`                                                              | [ERR_TYPE_MMS_PROTO_TRANSIENT](https://developer.android.com/reference/android/provider/Telephony.MmsSms#ERR_TYPE_MMS_PROTO_TRANSIENT) Error type: MMS protocol transient error.                     |
| `int`                                                              | [ERR_TYPE_SMS_PROTO_PERMANENT](https://developer.android.com/reference/android/provider/Telephony.MmsSms#ERR_TYPE_SMS_PROTO_PERMANENT) Error type: SMS protocol permanent error.                     |
| `int`                                                              | [ERR_TYPE_SMS_PROTO_TRANSIENT](https://developer.android.com/reference/android/provider/Telephony.MmsSms#ERR_TYPE_SMS_PROTO_TRANSIENT) Error type: SMS protocol transient error.                     |
| `int`                                                              | [ERR_TYPE_TRANSPORT_FAILURE](https://developer.android.com/reference/android/provider/Telephony.MmsSms#ERR_TYPE_TRANSPORT_FAILURE) Error type: transport failure.                                    |
| `int`                                                              | [MMS_PROTO](https://developer.android.com/reference/android/provider/Telephony.MmsSms#MMS_PROTO) MMS protocol type.                                                                                  |
| `int`                                                              | [NO_ERROR](https://developer.android.com/reference/android/provider/Telephony.MmsSms#NO_ERROR) Error type: no error.                                                                                 |
| `int`                                                              | [SMS_PROTO](https://developer.android.com/reference/android/provider/Telephony.MmsSms#SMS_PROTO) SMS protocol type.                                                                                  |
| [String](https://developer.android.com/reference/java/lang/String) | [TYPE_DISCRIMINATOR_COLUMN](https://developer.android.com/reference/android/provider/Telephony.MmsSms#TYPE_DISCRIMINATOR_COLUMN) The column to distinguish SMS and MMS messages in query results.    |

|                                                                                                                                                                                                                                                                                                                                                ### Inherited constants                                                                                                                                                                                                                                                                                                                                                |
|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| From interface[android.provider.BaseColumns](https://developer.android.com/reference/android/provider/BaseColumns) |--------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------| | [String](https://developer.android.com/reference/java/lang/String) | [_COUNT](https://developer.android.com/reference/android/provider/BaseColumns#_COUNT) The count of rows in a directory. | | [String](https://developer.android.com/reference/java/lang/String) | [_ID](https://developer.android.com/reference/android/provider/BaseColumns#_ID) The unique ID for a row.                | |

|                                                                                                                                      ### Fields                                                                                                                                      ||
|---------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` public static final `[Uri](https://developer.android.com/reference/android/net/Uri) | [CONTENT_CONVERSATIONS_URI](https://developer.android.com/reference/android/provider/Telephony.MmsSms#CONTENT_CONVERSATIONS_URI) The`content://`style URL for this table, by conversation.    |
| ` public static final `[Uri](https://developer.android.com/reference/android/net/Uri) | [CONTENT_DRAFT_URI](https://developer.android.com/reference/android/provider/Telephony.MmsSms#CONTENT_DRAFT_URI) The`content://`style URL for draft messages in this table.                   |
| ` public static final `[Uri](https://developer.android.com/reference/android/net/Uri) | [CONTENT_FILTER_BYPHONE_URI](https://developer.android.com/reference/android/provider/Telephony.MmsSms#CONTENT_FILTER_BYPHONE_URI) The`content://`style URL for this table, by phone number.  |
| ` public static final `[Uri](https://developer.android.com/reference/android/net/Uri) | [CONTENT_LOCKED_URI](https://developer.android.com/reference/android/provider/Telephony.MmsSms#CONTENT_LOCKED_URI) The`content://`style URL for locked messages in this table.                |
| ` public static final `[Uri](https://developer.android.com/reference/android/net/Uri) | [CONTENT_UNDELIVERED_URI](https://developer.android.com/reference/android/provider/Telephony.MmsSms#CONTENT_UNDELIVERED_URI) The`content://`style URL for undelivered messages in this table. |
| ` public static final `[Uri](https://developer.android.com/reference/android/net/Uri) | [CONTENT_URI](https://developer.android.com/reference/android/provider/Telephony.MmsSms#CONTENT_URI) The`content://`style URL for this table.                                                 |
| ` public static final `[Uri](https://developer.android.com/reference/android/net/Uri) | [SEARCH_URI](https://developer.android.com/reference/android/provider/Telephony.MmsSms#SEARCH_URI) Pass in a query parameter called "pattern" which is the text to search for.                |

| ### Inherited methods |
|-----------------------|---|
| From class` `[java.lang.Object](https://developer.android.com/reference/java/lang/Object)` ` |--------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` `[Object](https://developer.android.com/reference/java/lang/Object)          | ` `[clone](https://developer.android.com/reference/java/lang/Object#clone())`() ` Creates and returns a copy of this object.                                                                                                                                                      | | ` boolean`                                                                     | ` `[equals](https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object))`(`[Object](https://developer.android.com/reference/java/lang/Object)` obj) ` Indicates whether some other object is "equal to" this one.                                           | | ` void`                                                                        | ` `[finalize](https://developer.android.com/reference/java/lang/Object#finalize())`() ` Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.                                                          | | ` final `[Class](https://developer.android.com/reference/java/lang/Class)`<?>` | ` `[getClass](https://developer.android.com/reference/java/lang/Object#getClass())`() ` Returns the runtime class of this`Object`.                                                                                                                                                | | ` int`                                                                         | ` `[hashCode](https://developer.android.com/reference/java/lang/Object#hashCode())`() ` Returns a hash code value for the object.                                                                                                                                                 | | ` final void`                                                                  | ` `[notify](https://developer.android.com/reference/java/lang/Object#notify())`() ` Wakes up a single thread that is waiting on this object's monitor.                                                                                                                            | | ` final void`                                                                  | ` `[notifyAll](https://developer.android.com/reference/java/lang/Object#notifyAll())`() ` Wakes up all threads that are waiting on this object's monitor.                                                                                                                         | | ` `[String](https://developer.android.com/reference/java/lang/String)          | ` `[toString](https://developer.android.com/reference/java/lang/Object#toString())`() ` Returns a string representation of the object.                                                                                                                                            | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait(long,%20int))`(long timeoutMillis, int nanos) ` Causes the current thread to wait until it is awakened, typically by being*notified* or*interrupted*, or until a certain amount of real time has elapsed. | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait(long))`(long timeoutMillis) ` Causes the current thread to wait until it is awakened, typically by being*notified* or*interrupted*, or until a certain amount of real time has elapsed.                   | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait())`() ` Causes the current thread to wait until it is awakened, typically by being*notified* or*interrupted*.                                                                                             | ||

## Constants

### ERR_TYPE_GENERIC

Added in[API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int ERR_TYPE_GENERIC
```

Error type: generic transient error.

<br />

Constant Value: 1 (0x00000001)  

### ERR_TYPE_GENERIC_PERMANENT

Added in[API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int ERR_TYPE_GENERIC_PERMANENT
```

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

<br />

Constant Value: 10 (0x0000000a)  

### ERR_TYPE_MMS_PROTO_PERMANENT

Added in[API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int ERR_TYPE_MMS_PROTO_PERMANENT
```

Error type: MMS protocol permanent error.

<br />

Constant Value: 12 (0x0000000c)  

### ERR_TYPE_MMS_PROTO_TRANSIENT

Added in[API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int ERR_TYPE_MMS_PROTO_TRANSIENT
```

Error type: MMS protocol transient error.

<br />

Constant Value: 3 (0x00000003)  

### ERR_TYPE_SMS_PROTO_PERMANENT

Added in[API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int ERR_TYPE_SMS_PROTO_PERMANENT
```

Error type: SMS protocol permanent error.

<br />

Constant Value: 11 (0x0000000b)  

### ERR_TYPE_SMS_PROTO_TRANSIENT

Added in[API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int ERR_TYPE_SMS_PROTO_TRANSIENT
```

Error type: SMS protocol transient error.

<br />

Constant Value: 2 (0x00000002)  

### ERR_TYPE_TRANSPORT_FAILURE

Added in[API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int ERR_TYPE_TRANSPORT_FAILURE
```

Error type: transport failure.

<br />

Constant Value: 4 (0x00000004)  

### MMS_PROTO

Added in[API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int MMS_PROTO
```

MMS protocol type.

<br />

Constant Value: 1 (0x00000001)  

### NO_ERROR

Added in[API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int NO_ERROR
```

Error type: no error.

<br />

Constant Value: 0 (0x00000000)  

### SMS_PROTO

Added in[API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int SMS_PROTO
```

SMS protocol type.

<br />

Constant Value: 0 (0x00000000)  

### TYPE_DISCRIMINATOR_COLUMN

Added in[API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final String TYPE_DISCRIMINATOR_COLUMN
```

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

<br />

Constant Value: "transport_type"

## Fields

### CONTENT_CONVERSATIONS_URI

Added in[API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final Uri CONTENT_CONVERSATIONS_URI
```

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

<br />

### CONTENT_DRAFT_URI

Added in[API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final Uri CONTENT_DRAFT_URI
```

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

<br />

### CONTENT_FILTER_BYPHONE_URI

Added in[API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final Uri CONTENT_FILTER_BYPHONE_URI
```

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

<br />

### CONTENT_LOCKED_URI

Added in[API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final Uri CONTENT_LOCKED_URI
```

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

This[Uri](https://developer.android.com/reference/android/net/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.

<br />

<br />

### CONTENT_UNDELIVERED_URI

Added in[API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final Uri CONTENT_UNDELIVERED_URI
```

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

<br />

### CONTENT_URI

Added in[API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final Uri CONTENT_URI
```

The`content://`style URL for this table.

<br />

### SEARCH_URI

Added in[API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
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`.

<br />