protected static interface ContactsContract.GroupsColumns
ContactsContract.Groups
Modifier and Type | Field and Description |
---|---|
static String |
ACCOUNT_TYPE_AND_DATA_SET
A concatenation of the account type and data set (delimited by a forward
slash) - if the data set is empty, this will be the same as the account
type.
|
static String |
AUTO_ADD
Any newly created contacts will automatically be added to groups that have this
flag set to true.
|
static String |
DATA_SET
The data set within the account that this group belongs to.
|
static String |
DELETED
The "deleted" flag: "0" by default, "1" if the row has been marked
for deletion.
|
static String |
FAVORITES
When a contacts is marked as a favorites it will be automatically added
to the groups that have this flag set, and when it is removed from favorites
it will be removed from these groups.
|
static String |
GROUP_IS_READ_ONLY
The "read-only" flag: "0" by default, "1" if the row cannot be modified or
deleted except by a sync adapter.
|
static String |
GROUP_VISIBLE
Flag indicating if the contacts belonging to this group should be
visible in any user interface.
|
static String |
NOTES
Notes about the group.
|
static String |
PARAM_RETURN_GROUP_COUNT_PER_ACCOUNT
A boolean query parameter that can be used with
ContactsContract.Groups.CONTENT_SUMMARY_URI . |
static String |
RES_PACKAGE
The package name to use when creating
Resources objects for
this group. |
static String |
SHOULD_SYNC
Whether this group should be synced if the SYNC_EVERYTHING settings
is false for this group's account.
|
static String |
SUMMARY_COUNT
The total number of
Contacts that have
ContactsContract.CommonDataKinds.GroupMembership in this group. |
static String |
SUMMARY_GROUP_COUNT_PER_ACCOUNT
The total number of groups of the account that a group belongs to.
|
static String |
SUMMARY_WITH_PHONES
The total number of
Contacts that have both
ContactsContract.CommonDataKinds.GroupMembership in this group, and also have phone numbers. |
static String |
SYSTEM_ID
The 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.
|
static String |
TITLE
The display title of this group.
|
static String |
TITLE_RES
The display title of this group to load as a resource from
RES_PACKAGE , which may be localized. |
static final String DATA_SET
Type: TEXT
static final String ACCOUNT_TYPE_AND_DATA_SET
static final String TITLE
Type: TEXT
static final String RES_PACKAGE
Resources
objects for
this group. This value is only designed for use when building user
interfaces, and should not be used to infer the owner.static final String TITLE_RES
RES_PACKAGE
, which may be localized.
Type: TEXT
static final String NOTES
Type: TEXT
static final String SYSTEM_ID
Type: TEXT
static final String SUMMARY_COUNT
Contacts
that have
ContactsContract.CommonDataKinds.GroupMembership
in this group. Read-only value that is only
present when querying ContactsContract.Groups.CONTENT_SUMMARY_URI
.
Type: INTEGER
static final String PARAM_RETURN_GROUP_COUNT_PER_ACCOUNT
ContactsContract.Groups.CONTENT_SUMMARY_URI
.
It will additionally return SUMMARY_GROUP_COUNT_PER_ACCOUNT
.static final String SUMMARY_GROUP_COUNT_PER_ACCOUNT
PARAM_RETURN_GROUP_COUNT_PER_ACCOUNT
is specified in
ContactsContract.Groups.CONTENT_SUMMARY_URI
.
For example, when the account "A" has two groups "group1" and "group2", and the account
"B" has a group "group3", the rows for "group1" and "group2" return "2" and the row for
"group3" returns "1" for this column.
Note: This counts only non-favorites, non-auto-add, and not deleted groups.
Type: INTEGERstatic final String SUMMARY_WITH_PHONES
Contacts
that have both
ContactsContract.CommonDataKinds.GroupMembership
in this group, and also have phone numbers.
Read-only value that is only present when querying
ContactsContract.Groups.CONTENT_SUMMARY_URI
.
Type: INTEGER
static final String GROUP_VISIBLE
Type: INTEGER (boolean)
static final String DELETED
ContentResolver.delete(android.net.Uri, java.lang.String, java.lang.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
ContactsContract.CALLER_IS_SYNCADAPTER
query parameter to
finalize the data removal.
Type: INTEGER
static final String SHOULD_SYNC
Type: INTEGER (boolean)
static final String AUTO_ADD
Type: INTEGER (boolean)
static final String FAVORITES
Type: INTEGER (boolean)
static final String GROUP_IS_READ_ONLY
ContactsContract.CALLER_IS_SYNCADAPTER
.
Type: INTEGER