ContactsContract
@Deprecated public static final class Contacts.People extends Object implements BaseColumns, SyncConstValue, Contacts.PeopleColumns, Contacts.PhonesColumns, Contacts.PresenceColumns
Modifier and Type | Class and Description |
---|---|
static class |
Contacts.People.ContactMethods
Deprecated.
see
ContactsContract |
static class |
Contacts.People.Extensions
Deprecated.
see
ContactsContract |
static class |
Contacts.People.Phones
Deprecated.
see
ContactsContract |
Modifier and Type | Field and Description |
---|---|
static Uri |
CONTENT_FILTER_URI
Deprecated.
see
ContactsContract |
static String |
CONTENT_ITEM_TYPE
Deprecated.
see
ContactsContract |
static String |
CONTENT_TYPE
Deprecated.
see
ContactsContract |
static Uri |
CONTENT_URI
Deprecated.
see
ContactsContract |
static String |
DEFAULT_SORT_ORDER
Deprecated.
see
ContactsContract |
static Uri |
DELETED_CONTENT_URI
Deprecated.
see
ContactsContract |
static String |
PRIMARY_EMAIL_ID
Deprecated.
see
ContactsContract |
static String |
PRIMARY_ORGANIZATION_ID
Deprecated.
see
ContactsContract |
static String |
PRIMARY_PHONE_ID
Deprecated.
see
ContactsContract |
static Uri |
WITH_EMAIL_OR_IM_FILTER_URI
Deprecated.
see
ContactsContract |
_COUNT, _ID
_SYNC_ACCOUNT, _SYNC_ACCOUNT_TYPE, _SYNC_DIRTY, _SYNC_ID, _SYNC_LOCAL_ID, _SYNC_MARK, _SYNC_TIME, _SYNC_VERSION, NON_SYNCABLE_ACCOUNT, NON_SYNCABLE_ACCOUNT_TYPE
CUSTOM_RINGTONE, DISPLAY_NAME, LAST_TIME_CONTACTED, NAME, NOTES, PHONETIC_NAME, PHOTO_VERSION, SEND_TO_VOICEMAIL, SORT_STRING, STARRED, TIMES_CONTACTED
ISPRIMARY, LABEL, NUMBER, NUMBER_KEY, TYPE, TYPE_CUSTOM, TYPE_FAX_HOME, TYPE_FAX_WORK, TYPE_HOME, TYPE_MOBILE, TYPE_OTHER, TYPE_PAGER, TYPE_WORK
AVAILABLE, AWAY, DO_NOT_DISTURB, IDLE, IM_ACCOUNT, IM_HANDLE, IM_PROTOCOL, INVISIBLE, OFFLINE, PRESENCE_CUSTOM_STATUS, PRESENCE_STATUS, PRIORITY
Modifier and Type | Method and Description |
---|---|
static Uri |
addToGroup(ContentResolver resolver,
long personId,
long groupId)
Deprecated.
see
ContactsContract |
static Uri |
addToGroup(ContentResolver resolver,
long personId,
String groupName)
Deprecated.
see
ContactsContract |
static Uri |
addToMyContactsGroup(ContentResolver resolver,
long personId)
Deprecated.
see
ContactsContract |
static Uri |
createPersonInMyContactsGroup(ContentResolver resolver,
ContentValues values)
Deprecated.
see
ContactsContract |
static Bitmap |
loadContactPhoto(Context context,
Uri person,
int placeholderImageResource,
BitmapFactory.Options options)
Deprecated.
see
ContactsContract |
static void |
markAsContacted(ContentResolver resolver,
long personId)
Deprecated.
see
ContactsContract |
static InputStream |
openContactPhotoInputStream(ContentResolver cr,
Uri person)
Deprecated.
see
ContactsContract |
static Cursor |
queryGroups(ContentResolver resolver,
long person)
Deprecated.
see
ContactsContract |
static void |
setPhotoData(ContentResolver cr,
Uri person,
byte[] data)
Deprecated.
see
ContactsContract |
static long |
tryGetMyContactsGroupId(ContentResolver resolver)
Deprecated.
see
ContactsContract |
@Deprecated public static final Uri CONTENT_URI
ContactsContract
@Deprecated public static final Uri CONTENT_FILTER_URI
ContactsContract
@Deprecated public static final Uri DELETED_CONTENT_URI
ContactsContract
@Deprecated public static final Uri WITH_EMAIL_OR_IM_FILTER_URI
ContactsContract
Contacts.People.ContactMethods
that match the
filter.
Not exposed because we expect significant changes in the contacts
schema and do not want to have to support this.@Deprecated public static final String CONTENT_TYPE
ContactsContract
CONTENT_URI
providing a directory of
people.@Deprecated public static final String CONTENT_ITEM_TYPE
ContactsContract
CONTENT_URI
subdirectory of a single
person.@Deprecated public static final String DEFAULT_SORT_ORDER
ContactsContract
@Deprecated public static final String PRIMARY_PHONE_ID
ContactsContract
Type: INTEGER (foreign key to phones table on the _ID field)
@Deprecated public static final String PRIMARY_EMAIL_ID
ContactsContract
Type: INTEGER (foreign key to contact_methods table on the _ID field)
@Deprecated public static final String PRIMARY_ORGANIZATION_ID
ContactsContract
Type: INTEGER (foreign key to organizations table on the _ID field)
@Deprecated public static void markAsContacted(ContentResolver resolver, long personId)
ContactsContract
resolver
- the ContentResolver to usepersonId
- the person who was contacted@Deprecated public static long tryGetMyContactsGroupId(ContentResolver resolver)
ContactsContract
@Deprecated public static Uri addToMyContactsGroup(ContentResolver resolver, long personId)
ContactsContract
resolver
- the resolver to usepersonId
- the person to add to the groupIllegalStateException
- if the My Contacts group can't be found@Deprecated public static Uri addToGroup(ContentResolver resolver, long personId, String groupName)
ContactsContract
resolver
- the resolver to usepersonId
- the person to add to the groupgroupName
- the name of the group to add the contact toIllegalStateException
- if the group can't be found@Deprecated public static Uri addToGroup(ContentResolver resolver, long personId, long groupId)
ContactsContract
resolver
- the resolver to usepersonId
- the person to add to the groupgroupId
- the group to add the person to@Deprecated public static Uri createPersonInMyContactsGroup(ContentResolver resolver, ContentValues values)
ContactsContract
resolver
- the ContentResolver to usevalues
- the values to use when creating the contact@Deprecated public static Cursor queryGroups(ContentResolver resolver, long person)
ContactsContract
@Deprecated public static void setPhotoData(ContentResolver cr, Uri person, byte[] data)
ContactsContract
cr
- the ContentResolver to useperson
- the Uri of the person whose photo is to be updateddata
- the byte[] that represents the photo@Deprecated public static InputStream openContactPhotoInputStream(ContentResolver cr, Uri person)
ContactsContract
person
- the person whose photo should be used@Deprecated public static Bitmap loadContactPhoto(Context context, Uri person, int placeholderImageResource, BitmapFactory.Options options)
ContactsContract
context
- the Contextperson
- the person whose photo should be usedplaceholderImageResource
- the image resource to use if the person doesn't
have a photooptions
- the decoding options, can be set to null