# Contacts.Groups

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Deprecated in[API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Summary:[Constants](https://developer.android.com/reference/android/provider/Contacts.Groups#constants)\|[Inherited Constants](https://developer.android.com/reference/android/provider/Contacts.Groups#inhconstants)\|[Fields](https://developer.android.com/reference/android/provider/Contacts.Groups#lfields)\|[Inherited Methods](https://developer.android.com/reference/android/provider/Contacts.Groups#inhmethods)  

# Contacts.Groups

*** ** * ** ***

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

`
public
static
final

class
Contacts.Groups
`  
`

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


``


implements

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

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


`

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

<br />

*** ** * ** ***

<br />

**This class was deprecated in API level 5.**   
see[ContactsContract](https://developer.android.com/reference/android/provider/ContactsContract)

This table contains the groups for an account.

## Summary

|                                                                                                                                                        ### Constants                                                                                                                                                        ||
|--------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [String](https://developer.android.com/reference/java/lang/String) | [CONTENT_ITEM_TYPE](https://developer.android.com/reference/android/provider/Contacts.Groups#CONTENT_ITEM_TYPE) *This constant is deprecated. see[ContactsContract](https://developer.android.com/reference/android/provider/ContactsContract)*         |
| [String](https://developer.android.com/reference/java/lang/String) | [CONTENT_TYPE](https://developer.android.com/reference/android/provider/Contacts.Groups#CONTENT_TYPE) *This constant is deprecated. see[ContactsContract](https://developer.android.com/reference/android/provider/ContactsContract)*                   |
| [String](https://developer.android.com/reference/java/lang/String) | [DEFAULT_SORT_ORDER](https://developer.android.com/reference/android/provider/Contacts.Groups#DEFAULT_SORT_ORDER) *This constant is deprecated. see[ContactsContract](https://developer.android.com/reference/android/provider/ContactsContract)*       |
| [String](https://developer.android.com/reference/java/lang/String) | [GROUP_ANDROID_STARRED](https://developer.android.com/reference/android/provider/Contacts.Groups#GROUP_ANDROID_STARRED) *This constant is deprecated. see[ContactsContract](https://developer.android.com/reference/android/provider/ContactsContract)* |
| [String](https://developer.android.com/reference/java/lang/String) | [GROUP_MY_CONTACTS](https://developer.android.com/reference/android/provider/Contacts.Groups#GROUP_MY_CONTACTS) *This constant is deprecated. see[ContactsContract](https://developer.android.com/reference/android/provider/ContactsContract)*         |

|                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           ### 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.                |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| From interface[android.provider.Contacts.GroupsColumns](https://developer.android.com/reference/android/provider/Contacts.GroupsColumns) |--------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [String](https://developer.android.com/reference/java/lang/String) | [NAME](https://developer.android.com/reference/android/provider/Contacts.GroupsColumns#NAME) *This constant is deprecated. see[ContactsContract](https://developer.android.com/reference/android/provider/ContactsContract)*               | | [String](https://developer.android.com/reference/java/lang/String) | [NOTES](https://developer.android.com/reference/android/provider/Contacts.GroupsColumns#NOTES) *This constant is deprecated. see[ContactsContract](https://developer.android.com/reference/android/provider/ContactsContract)*             | | [String](https://developer.android.com/reference/java/lang/String) | [SHOULD_SYNC](https://developer.android.com/reference/android/provider/Contacts.GroupsColumns#SHOULD_SYNC) *This constant is deprecated. see[ContactsContract](https://developer.android.com/reference/android/provider/ContactsContract)* | | [String](https://developer.android.com/reference/java/lang/String) | [SYSTEM_ID](https://developer.android.com/reference/android/provider/Contacts.GroupsColumns#SYSTEM_ID) *This constant is deprecated. see[ContactsContract](https://developer.android.com/reference/android/provider/ContactsContract)*     | |

|                                                                                                                                                               ### Fields                                                                                                                                                                ||
|---------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` public static final `[Uri](https://developer.android.com/reference/android/net/Uri) | [CONTENT_URI](https://developer.android.com/reference/android/provider/Contacts.Groups#CONTENT_URI) *This field is deprecated. see[ContactsContract](https://developer.android.com/reference/android/provider/ContactsContract)*                 |
| ` public static final `[Uri](https://developer.android.com/reference/android/net/Uri) | [DELETED_CONTENT_URI](https://developer.android.com/reference/android/provider/Contacts.Groups#DELETED_CONTENT_URI) *This field is deprecated. see[ContactsContract](https://developer.android.com/reference/android/provider/ContactsContract)* |

| ### 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

### CONTENT_ITEM_TYPE

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

```
public static final String CONTENT_ITEM_TYPE
```

<br />

**This constant is deprecated.**   
see[ContactsContract](https://developer.android.com/reference/android/provider/ContactsContract)

The MIME type of a[CONTENT_URI](https://developer.android.com/reference/android/provider/Contacts.Groups#CONTENT_URI)subdirectory of a single group.

<br />

Constant Value: "vnd.android.cursor.item/contactsgroup"  

### CONTENT_TYPE

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

```
public static final String CONTENT_TYPE
```

<br />

**This constant is deprecated.**   
see[ContactsContract](https://developer.android.com/reference/android/provider/ContactsContract)

The MIME type of[CONTENT_URI](https://developer.android.com/reference/android/provider/Contacts.Groups#CONTENT_URI)providing a directory of groups.

<br />

Constant Value: "vnd.android.cursor.dir/contactsgroup"  

### DEFAULT_SORT_ORDER

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

```
public static final String DEFAULT_SORT_ORDER
```

<br />

**This constant is deprecated.**   
see[ContactsContract](https://developer.android.com/reference/android/provider/ContactsContract)

The default sort order for this table

<br />

Constant Value: "name ASC"  

### GROUP_ANDROID_STARRED

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

```
public static final String GROUP_ANDROID_STARRED
```

<br />

**This constant is deprecated.**   
see[ContactsContract](https://developer.android.com/reference/android/provider/ContactsContract)

<br />

<br />

Constant Value: "Starred in Android"  

### GROUP_MY_CONTACTS

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

```
public static final String GROUP_MY_CONTACTS
```

<br />

**This constant is deprecated.**   
see[ContactsContract](https://developer.android.com/reference/android/provider/ContactsContract)

The "My Contacts" system group.

<br />

Constant Value: "Contacts"

## Fields

### CONTENT_URI

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

```
public static final Uri CONTENT_URI
```

<br />

**This field is deprecated.**   
see[ContactsContract](https://developer.android.com/reference/android/provider/ContactsContract)

The content:// style URL for this table

<br />

### DELETED_CONTENT_URI

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

```
public static final Uri DELETED_CONTENT_URI
```

<br />

**This field is deprecated.**   
see[ContactsContract](https://developer.android.com/reference/android/provider/ContactsContract)

The content:// style URL for the table that holds the deleted groups.

<br />