public static final class

ContactsContract.Groups

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

Class Overview

Constants for the groups table. Only per-account groups are supported.

Columns

Groups
long_IDread-onlyRow ID. Sync adapter should try to preserve row IDs during updates. In other words, it would be a really bad idea to delete and reinsert a group. A sync adapter should always do an update instead.
StringTITLEread/writeThe display title of this group.
StringNOTESread/writeNotes about the group.
StringSYSTEM_IDread/writeThe ID of this group if it is a System Group, i.e. a group that has a special meaning to the sync adapter, null otherwise.
intSUMMARY_COUNTread-onlyThe total number of Contacts that have ContactsContract.CommonDataKinds.GroupMembership in this group. Read-only value that is only present when querying CONTENT_SUMMARY_URI.
intSUMMARY_WITH_PHONESread-onlyThe total number of Contacts that have both ContactsContract.CommonDataKinds.GroupMembership in this group, and also have phone numbers. Read-only value that is only present when querying CONTENT_SUMMARY_URI.
intGROUP_VISIBLEread-onlyFlag indicating if the contacts belonging to this group should be visible in any user interface. Allowed values: 0 and 1.
intDELETEDread/writeThe "deleted" flag: "0" by default, "1" if the row has been marked for deletion. When delete(Uri, String, String[]) is called on a group, it is marked for deletion. The sync adaptor deletes the group on the server and then calls ContactResolver.delete once more, this time setting the the CALLER_IS_SYNCADAPTER query parameter to finalize the data removal.
intSHOULD_SYNCread/writeWhether this group should be synced if the SYNC_EVERYTHING settings is false for this group's account.

Summary

Constants
StringCONTENT_ITEM_TYPEThe MIME type of a single group.
UriCONTENT_SUMMARY_URIThe content:// style URI for this table joined with details data from ContactsContract.Data.
StringCONTENT_TYPEThe MIME type of a directory of groups.
UriCONTENT_URIThe content:// style URI for this table
[Expand]
Inherited Constants
From interface android.provider.BaseColumns
From interface android.provider.ContactsContract.BaseSyncColumns
From interface android.provider.ContactsContract.GroupsColumns
From interface android.provider.ContactsContract.SyncColumns
Public Methods
static EntityIterator newEntityIterator(Cursor cursor)
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final String CONTENT_ITEM_TYPE

Since: API Level 5

The MIME type of a single group.

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

public static final Uri CONTENT_SUMMARY_URI

Since: API Level 5

The content:// style URI for this table joined with details data from ContactsContract.Data.

public static final String CONTENT_TYPE

Since: API Level 5

The MIME type of a directory of groups.

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

public static final Uri CONTENT_URI

Since: API Level 5

The content:// style URI for this table

Public Methods

public static EntityIterator newEntityIterator (Cursor cursor)

Since: API Level 8