Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
Android APIs
public static final class

Contacts.Groups

extends Object
implements BaseColumns Contacts.GroupsColumns
java.lang.Object
   ↳ android.provider.Contacts.Groups

This class was deprecated in API level 5.
see ContactsContract

Class Overview

This table contains the groups for an account.

Summary

Constants
String CONTENT_ITEM_TYPE This constant was deprecated in API level 5. see ContactsContract
String CONTENT_TYPE This constant was deprecated in API level 5. see ContactsContract
String DEFAULT_SORT_ORDER This constant was deprecated in API level 5. see ContactsContract
String GROUP_ANDROID_STARRED This constant was deprecated in API level 5. see ContactsContract
String GROUP_MY_CONTACTS This constant was deprecated in API level 5. see ContactsContract
String NON_SYNCABLE_ACCOUNT Used to indicate that this account is not synced
String NON_SYNCABLE_ACCOUNT_TYPE Used to indicate that this account is not synced
String _SYNC_ACCOUNT The account that was used to sync the entry to the device.
String _SYNC_ACCOUNT_TYPE The type of the account that was used to sync the entry to the device.
String _SYNC_DIRTY Used to indicate that local, unsynced, changes are present.
String _SYNC_ID The unique ID for a row assigned by the sync source.
String _SYNC_LOCAL_ID Used in temporary provider while syncing, always NULL for rows in persistent providers.
String _SYNC_MARK Used only in persistent providers, and only during merging.
String _SYNC_TIME The last time, from the sync source's point of view, that this row has been synchronized.
String _SYNC_VERSION The version of the row, as assigned by the server.
[Expand]
Inherited Constants
From interface android.provider.BaseColumns
From interface android.provider.Contacts.GroupsColumns
Fields
public static final Uri CONTENT_URI This field was deprecated in API level 5. see ContactsContract
public static final Uri DELETED_CONTENT_URI This field was deprecated in API level 5. see ContactsContract
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final String CONTENT_ITEM_TYPE

Added in API level 1

This constant was deprecated in API level 5.
see ContactsContract

The MIME type of a CONTENT_URI subdirectory of a single group.

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

public static final String CONTENT_TYPE

Added in API level 1

This constant was deprecated in API level 5.
see ContactsContract

The MIME type of CONTENT_URI providing a directory of groups.

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

public static final String DEFAULT_SORT_ORDER

Added in API level 1

This constant was deprecated in API level 5.
see ContactsContract

The default sort order for this table

Constant Value: "name ASC"

public static final String GROUP_ANDROID_STARRED

Added in API level 1

This constant was deprecated in API level 5.
see ContactsContract

Constant Value: "Starred in Android"

public static final String GROUP_MY_CONTACTS

Added in API level 1

This constant was deprecated in API level 5.
see ContactsContract

The "My Contacts" system group.

Constant Value: "Contacts"

public static final String NON_SYNCABLE_ACCOUNT

Used to indicate that this account is not synced

Constant Value: "non_syncable"

public static final String NON_SYNCABLE_ACCOUNT_TYPE

Used to indicate that this account is not synced

Constant Value: "android.local"

public static final String _SYNC_ACCOUNT

The account that was used to sync the entry to the device.

Type: TEXT

Constant Value: "_sync_account"

public static final String _SYNC_ACCOUNT_TYPE

The type of the account that was used to sync the entry to the device.

Type: TEXT

Constant Value: "_sync_account_type"

public static final String _SYNC_DIRTY

Used to indicate that local, unsynced, changes are present.

Type: INTEGER (long)

Constant Value: "_sync_dirty"

public static final String _SYNC_ID

The unique ID for a row assigned by the sync source. NULL if the row has never been synced.

Type: TEXT

Constant Value: "_sync_id"

public static final String _SYNC_LOCAL_ID

Used in temporary provider while syncing, always NULL for rows in persistent providers.

Type: INTEGER (long)

Constant Value: "_sync_local_id"

public static final String _SYNC_MARK

Used only in persistent providers, and only during merging.

Type: INTEGER (long)

Constant Value: "_sync_mark"

public static final String _SYNC_TIME

The last time, from the sync source's point of view, that this row has been synchronized.

Type: INTEGER (long)

Constant Value: "_sync_time"

public static final String _SYNC_VERSION

The version of the row, as assigned by the server.

Type: TEXT

Constant Value: "_sync_version"

Fields

public static final Uri CONTENT_URI

Added in API level 1

This field was deprecated in API level 5.
see ContactsContract

The content:// style URL for this table

public static final Uri DELETED_CONTENT_URI

Added in API level 1

This field was deprecated in API level 5.
see ContactsContract

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