# Telephony.Sms.Conversations

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

# Conversations

*** ** * ** ***

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

```
class Conversations : BaseColumns, Telephony.TextBasedSmsColumns
```

|---|----------------------------------------------------------------------------------------------------------------------------------------------|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)                                                               ||
| ↳ | [android.provider.Telephony.Sms.Conversations](https://developer.android.com/reference/kotlin/android/provider/Telephony.Sms.Conversations#) |

Contains a view of SMS conversations (also referred to as threads). This is similar to[Threads](https://developer.android.com/reference/kotlin/android/provider/Telephony.Threads), but only includes SMS messages and columns relevant to SMS conversations.

Note that this view ignores any information about MMS messages, it is a view of conversations as if MMS messages did not exist at all. This means that all relevant information, such as snippets and message count, will ignore any MMS messages that might be in the same thread through other views and present only data based on the SMS messages in that thread.

## Summary

|                                                                                                                                      Constants                                                                                                                                       ||
|----------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [DEFAULT_SORT_ORDER](https://developer.android.com/reference/kotlin/android/provider/Telephony.Sms.Conversations#DEFAULT_SORT_ORDER:kotlin.String) The default sort order for this table.    |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [MESSAGE_COUNT](https://developer.android.com/reference/kotlin/android/provider/Telephony.Sms.Conversations#MESSAGE_COUNT:kotlin.String) The number of messages in the conversation.         |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [SNIPPET](https://developer.android.com/reference/kotlin/android/provider/Telephony.Sms.Conversations#SNIPPET:kotlin.String) The first 45 characters of the body of the most recent message. |

| Inherited constants ||
|---|---|
| From class[TextBasedSmsColumns](https://developer.android.com/reference/kotlin/android/provider/Telephony.TextBasedSmsColumns) |----------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [ADDRESS](https://developer.android.com/reference/kotlin/android/provider/Telephony.TextBasedSmsColumns#ADDRESS:kotlin.String) <br /> The address of the other party. Type: TEXT <br />                                                                                                                                                                               | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [BODY](https://developer.android.com/reference/kotlin/android/provider/Telephony.TextBasedSmsColumns#BODY:kotlin.String) <br /> The body of the message. Type: TEXT <br />                                                                                                                                                                                            | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [CREATOR](https://developer.android.com/reference/kotlin/android/provider/Telephony.TextBasedSmsColumns#CREATOR:kotlin.String) <br /> 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 <br /> | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [DATE](https://developer.android.com/reference/kotlin/android/provider/Telephony.TextBasedSmsColumns#DATE:kotlin.String) <br /> The date the message was received. Type: INTEGER (long) <br />                                                                                                                                                                        | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [DATE_SENT](https://developer.android.com/reference/kotlin/android/provider/Telephony.TextBasedSmsColumns#DATE_SENT:kotlin.String) <br /> The date the message was sent. Type: INTEGER (long) <br />                                                                                                                                                                  | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [ERROR_CODE](https://developer.android.com/reference/kotlin/android/provider/Telephony.TextBasedSmsColumns#ERROR_CODE:kotlin.String) <br /> Error code associated with sending or receiving this message Type: INTEGER <br />                                                                                                                                         | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [LOCKED](https://developer.android.com/reference/kotlin/android/provider/Telephony.TextBasedSmsColumns#LOCKED:kotlin.String) <br /> Is the message locked? Type: INTEGER (boolean) <br />                                                                                                                                                                             | | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)       | [MESSAGE_TYPE_ALL](https://developer.android.com/reference/kotlin/android/provider/Telephony.TextBasedSmsColumns#MESSAGE_TYPE_ALL:kotlin.Int) <br /> Message type: all messages. <br />                                                                                                                                                                               | | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)       | [MESSAGE_TYPE_DRAFT](https://developer.android.com/reference/kotlin/android/provider/Telephony.TextBasedSmsColumns#MESSAGE_TYPE_DRAFT:kotlin.Int) <br /> Message type: drafts. <br />                                                                                                                                                                                 | | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)       | [MESSAGE_TYPE_FAILED](https://developer.android.com/reference/kotlin/android/provider/Telephony.TextBasedSmsColumns#MESSAGE_TYPE_FAILED:kotlin.Int) <br /> Message type: failed outgoing message. <br />                                                                                                                                                              | | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)       | [MESSAGE_TYPE_INBOX](https://developer.android.com/reference/kotlin/android/provider/Telephony.TextBasedSmsColumns#MESSAGE_TYPE_INBOX:kotlin.Int) <br /> Message type: inbox. <br />                                                                                                                                                                                  | | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)       | [MESSAGE_TYPE_OUTBOX](https://developer.android.com/reference/kotlin/android/provider/Telephony.TextBasedSmsColumns#MESSAGE_TYPE_OUTBOX:kotlin.Int) <br /> Message type: outbox. <br />                                                                                                                                                                               | | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)       | [MESSAGE_TYPE_QUEUED](https://developer.android.com/reference/kotlin/android/provider/Telephony.TextBasedSmsColumns#MESSAGE_TYPE_QUEUED:kotlin.Int) <br /> Message type: queued to send later. <br />                                                                                                                                                                 | | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)       | [MESSAGE_TYPE_SENT](https://developer.android.com/reference/kotlin/android/provider/Telephony.TextBasedSmsColumns#MESSAGE_TYPE_SENT:kotlin.Int) <br /> Message type: sent messages. <br />                                                                                                                                                                            | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [PERSON](https://developer.android.com/reference/kotlin/android/provider/Telephony.TextBasedSmsColumns#PERSON:kotlin.String) <br /> The ID of the sender of the conversation, if present. Type: INTEGER (reference to item in`content://contacts/people`) <br />                                                                                                      | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [PROTOCOL](https://developer.android.com/reference/kotlin/android/provider/Telephony.TextBasedSmsColumns#PROTOCOL:kotlin.String) <br /> The protocol identifier code. Type: INTEGER <br />                                                                                                                                                                            | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [READ](https://developer.android.com/reference/kotlin/android/provider/Telephony.TextBasedSmsColumns#READ:kotlin.String) <br /> Has the message been read? Type: INTEGER (boolean) <br />                                                                                                                                                                             | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [REPLY_PATH_PRESENT](https://developer.android.com/reference/kotlin/android/provider/Telephony.TextBasedSmsColumns#REPLY_PATH_PRESENT:kotlin.String) <br /> Is the`TP-Reply-Path`flag set? Type: BOOLEAN <br />                                                                                                                                                       | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [SEEN](https://developer.android.com/reference/kotlin/android/provider/Telephony.TextBasedSmsColumns#SEEN:kotlin.String) <br /> Has the message been seen by the user? The "seen" flag determines whether we need to show a notification. Type: INTEGER (boolean) <br />                                                                                              | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [SERVICE_CENTER](https://developer.android.com/reference/kotlin/android/provider/Telephony.TextBasedSmsColumns#SERVICE_CENTER:kotlin.String) <br /> The service center (SC) through which to send the message, if present. Type: TEXT <br />                                                                                                                          | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [STATUS](https://developer.android.com/reference/kotlin/android/provider/Telephony.TextBasedSmsColumns#STATUS:kotlin.String) <br /> `TP-Status`value for the message, or -1 if no status has been received. Type: INTEGER <br />                                                                                                                                      | | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)       | [STATUS_COMPLETE](https://developer.android.com/reference/kotlin/android/provider/Telephony.TextBasedSmsColumns#STATUS_COMPLETE:kotlin.Int) <br /> TP-Status: complete. <br />                                                                                                                                                                                        | | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)       | [STATUS_FAILED](https://developer.android.com/reference/kotlin/android/provider/Telephony.TextBasedSmsColumns#STATUS_FAILED:kotlin.Int) <br /> TP-Status: failed. <br />                                                                                                                                                                                              | | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)       | [STATUS_NONE](https://developer.android.com/reference/kotlin/android/provider/Telephony.TextBasedSmsColumns#STATUS_NONE:kotlin.Int) <br /> TP-Status: no status received. <br />                                                                                                                                                                                      | | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)       | [STATUS_PENDING](https://developer.android.com/reference/kotlin/android/provider/Telephony.TextBasedSmsColumns#STATUS_PENDING:kotlin.Int) <br /> TP-Status: pending. <br />                                                                                                                                                                                           | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [SUBJECT](https://developer.android.com/reference/kotlin/android/provider/Telephony.TextBasedSmsColumns#SUBJECT:kotlin.String) <br /> The subject of the message, if present. Type: TEXT <br />                                                                                                                                                                       | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [SUBSCRIPTION_ID](https://developer.android.com/reference/kotlin/android/provider/Telephony.TextBasedSmsColumns#SUBSCRIPTION_ID:kotlin.String) <br /> The subscription to which the message belongs to. Its value will be \< 0 if the sub id cannot be determined. Type: INTEGER (long) <br />                                                                        | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [THREAD_ID](https://developer.android.com/reference/kotlin/android/provider/Telephony.TextBasedSmsColumns#THREAD_ID:kotlin.String) <br /> The thread ID of the message. Type: INTEGER <br />                                                                                                                                                                          | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [TYPE](https://developer.android.com/reference/kotlin/android/provider/Telephony.TextBasedSmsColumns#TYPE:kotlin.String) <br /> The type of message. Type: INTEGER <br />                                                                                                                                                                                             | ||
| From class[BaseColumns](https://developer.android.com/reference/kotlin/android/provider/BaseColumns) |----------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [_COUNT](https://developer.android.com/reference/kotlin/android/provider/BaseColumns#_COUNT:kotlin.String) <br /> The count of rows in a directory. Type: INTEGER <br /> | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [_ID](https://developer.android.com/reference/kotlin/android/provider/BaseColumns#_ID:kotlin.String) <br /> The unique ID for a row. Type: INTEGER (long) <br />         | ||

|                                                                                                                             Properties                                                                                                                              ||
|------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| static[Uri](https://developer.android.com/reference/kotlin/android/net/Uri.html#)! | [CONTENT_URI](https://developer.android.com/reference/kotlin/android/provider/Telephony.Sms.Conversations#CONTENT_URI:android.net.Uri) The`content://`style URL for this table. |

## Constants

### DEFAULT_SORT_ORDER

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

```
static val DEFAULT_SORT_ORDER: String
```

The default sort order for this table.  

    Value: "date DESC"

### MESSAGE_COUNT

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

```
static val MESSAGE_COUNT: String
```

The number of messages in the conversation.

Type: INTEGER  

    Value: "msg_count"

### SNIPPET

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

```
static val SNIPPET: String
```

The first 45 characters of the body of the most recent message.

Type: TEXT  

    Value: "snippet"

## Properties

### CONTENT_URI

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

```
static val CONTENT_URI: Uri!
```

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