# Contacts.GroupMembership

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.GroupMembership#constants)\|[Inherited Constants](https://developer.android.com/reference/android/provider/Contacts.GroupMembership#inhconstants)\|[Fields](https://developer.android.com/reference/android/provider/Contacts.GroupMembership#lfields)\|[Inherited Methods](https://developer.android.com/reference/android/provider/Contacts.GroupMembership#inhmethods)  

# Contacts.GroupMembership

*** ** * ** ***

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

`
public
static
final

class
Contacts.GroupMembership
`  
`

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

<br />

*** ** * ** ***

<br />

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

## Summary

|                                                                                                                                                                      ### Constants                                                                                                                                                                       ||
|--------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [String](https://developer.android.com/reference/java/lang/String) | [CONTENT_DIRECTORY](https://developer.android.com/reference/android/provider/Contacts.GroupMembership#CONTENT_DIRECTORY) *This constant is deprecated. see[ContactsContract](https://developer.android.com/reference/android/provider/ContactsContract)*                             |
| [String](https://developer.android.com/reference/java/lang/String) | [CONTENT_ITEM_TYPE](https://developer.android.com/reference/android/provider/Contacts.GroupMembership#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.GroupMembership#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.GroupMembership#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_ID](https://developer.android.com/reference/android/provider/Contacts.GroupMembership#GROUP_ID) *This constant is deprecated. see[ContactsContract](https://developer.android.com/reference/android/provider/ContactsContract)*                                               |
| [String](https://developer.android.com/reference/java/lang/String) | [GROUP_SYNC_ACCOUNT](https://developer.android.com/reference/android/provider/Contacts.GroupMembership#GROUP_SYNC_ACCOUNT) *This constant is deprecated. see[ContactsContract](https://developer.android.com/reference/android/provider/ContactsContract)*                           |
| [String](https://developer.android.com/reference/java/lang/String) | [GROUP_SYNC_ACCOUNT_TYPE](https://developer.android.com/reference/android/provider/Contacts.GroupMembership#GROUP_SYNC_ACCOUNT_TYPE) *This constant was deprecated in API level 5. see[ContactsContract](https://developer.android.com/reference/android/provider/ContactsContract)* |
| [String](https://developer.android.com/reference/java/lang/String) | [GROUP_SYNC_ID](https://developer.android.com/reference/android/provider/Contacts.GroupMembership#GROUP_SYNC_ID) *This constant is deprecated. see[ContactsContract](https://developer.android.com/reference/android/provider/ContactsContract)*                                     |
| [String](https://developer.android.com/reference/java/lang/String) | [PERSON_ID](https://developer.android.com/reference/android/provider/Contacts.GroupMembership#PERSON_ID) *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.GroupMembership#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) | [RAW_CONTENT_URI](https://developer.android.com/reference/android/provider/Contacts.GroupMembership#RAW_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_DIRECTORY

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

```
public static final String CONTENT_DIRECTORY
```

<br />

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

The directory twig for this sub-table

<br />

Constant Value: "groupmembership"  

### 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.GroupMembership#CONTENT_URI)subdirectory of a single person group.

<br />

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

### 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.GroupMembership#CONTENT_URI)providing a directory of all person groups.

<br />

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

### 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: "group_id ASC"  

### GROUP_ID

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

```
public static final String GROUP_ID
```

<br />

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

The row id of the accounts group.

Type: TEXT

<br />

<br />

Constant Value: "group_id"  

### GROUP_SYNC_ACCOUNT

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

```
public static final String GROUP_SYNC_ACCOUNT
```

<br />

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

The account of the group.

Type: TEXT

<br />

<br />

Constant Value: "group_sync_account"  

### GROUP_SYNC_ACCOUNT_TYPE

Added in[API level 5](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)  

```
public static final String GROUP_SYNC_ACCOUNT_TYPE
```

<br />

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

The account type of the group.

Type: TEXT

<br />

<br />

Constant Value: "group_sync_account_type"  

### GROUP_SYNC_ID

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

```
public static final String GROUP_SYNC_ID
```

<br />

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

The sync id of the group.

Type: TEXT

<br />

<br />

Constant Value: "group_sync_id"  

### PERSON_ID

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

```
public static final String PERSON_ID
```

<br />

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

The row id of the person.

Type: TEXT

<br />

<br />

Constant Value: "person"

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

### RAW_CONTENT_URI

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

```
public static final Uri RAW_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 />