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

# Contacts.People

*** ** * ** ***

` public static final class Contacts.People `   
` extends https://developer.android.com/reference/java/lang/Object ` ` implements https://developer.android.com/reference/android/provider/BaseColumns, https://developer.android.com/reference/android/provider/Contacts.PeopleColumns, https://developer.android.com/reference/android/provider/Contacts.PhonesColumns, https://developer.android.com/reference/android/provider/Contacts.PresenceColumns `

|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) ||
| ↳ | android.provider.Contacts.People |

<br />

*** ** * ** ***

<br />

**This class was deprecated in API level 5.**   

see `https://developer.android.com/reference/android/provider/ContactsContract`

This table contains people.

## Summary

| ### Nested classes ||
|---|---|
| ` class` | `https://developer.android.com/reference/android/provider/Contacts.People.ContactMethods` *This class was deprecated in API level 5. see `https://developer.android.com/reference/android/provider/ContactsContract`* |
| ` class` | `https://developer.android.com/reference/android/provider/Contacts.People.Extensions` *This class was deprecated in API level 5. see `https://developer.android.com/reference/android/provider/ContactsContract`* |
| ` class` | `https://developer.android.com/reference/android/provider/Contacts.People.Phones` *This class was deprecated in API level 5. see `https://developer.android.com/reference/android/provider/ContactsContract`* |

| ### Constants ||
|---|---|
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/Contacts.People#CONTENT_ITEM_TYPE` *This constant is deprecated. see `https://developer.android.com/reference/android/provider/ContactsContract`* |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/Contacts.People#CONTENT_TYPE` *This constant is deprecated. see `https://developer.android.com/reference/android/provider/ContactsContract`* |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/Contacts.People#DEFAULT_SORT_ORDER` *This constant is deprecated. see `https://developer.android.com/reference/android/provider/ContactsContract`* |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/Contacts.People#PRIMARY_EMAIL_ID` *This constant is deprecated. see `https://developer.android.com/reference/android/provider/ContactsContract`* |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/Contacts.People#PRIMARY_ORGANIZATION_ID` *This constant is deprecated. see `https://developer.android.com/reference/android/provider/ContactsContract`* |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/Contacts.People#PRIMARY_PHONE_ID` *This constant is deprecated. see `https://developer.android.com/reference/android/provider/ContactsContract`* |

### Inherited constants

From interface `https://developer.android.com/reference/android/provider/BaseColumns` `https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/provider/BaseColumns#_COUNT`

The count of rows in a directory.
`https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/provider/BaseColumns#_ID`

The unique ID for a row.
From interface `https://developer.android.com/reference/android/provider/Contacts.PeopleColumns` `https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/provider/Contacts.PeopleColumns#CUSTOM_RINGTONE`

*This constant is deprecated. see `https://developer.android.com/reference/android/provider/ContactsContract`*
`https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/provider/Contacts.PeopleColumns#DISPLAY_NAME`

*This constant is deprecated. see `https://developer.android.com/reference/android/provider/ContactsContract`*
`https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/provider/Contacts.PeopleColumns#LAST_TIME_CONTACTED`

*This constant is deprecated. see `https://developer.android.com/reference/android/provider/ContactsContract`*
`https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/provider/Contacts.PeopleColumns#NAME`

*This constant is deprecated. see `https://developer.android.com/reference/android/provider/ContactsContract`*
`https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/provider/Contacts.PeopleColumns#NOTES`

*This constant is deprecated. see `https://developer.android.com/reference/android/provider/ContactsContract`*
`https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/provider/Contacts.PeopleColumns#PHONETIC_NAME`

*This constant was deprecated in API level 5. see `https://developer.android.com/reference/android/provider/ContactsContract`*
`https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/provider/Contacts.PeopleColumns#PHOTO_VERSION`

*This constant is deprecated. see `https://developer.android.com/reference/android/provider/ContactsContract`*
`https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/provider/Contacts.PeopleColumns#SEND_TO_VOICEMAIL`

*This constant is deprecated. see `https://developer.android.com/reference/android/provider/ContactsContract`*
`https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/provider/Contacts.PeopleColumns#STARRED`

*This constant is deprecated. see `https://developer.android.com/reference/android/provider/ContactsContract`*
`https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/provider/Contacts.PeopleColumns#TIMES_CONTACTED`

*This constant is deprecated. see `https://developer.android.com/reference/android/provider/ContactsContract`*
From interface `https://developer.android.com/reference/android/provider/Contacts.PhonesColumns` `https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/provider/Contacts.PhonesColumns#ISPRIMARY`

*This constant is deprecated. see `https://developer.android.com/reference/android/provider/ContactsContract`*
`https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/provider/Contacts.PhonesColumns#LABEL`

*This constant is deprecated. see `https://developer.android.com/reference/android/provider/ContactsContract`*
`https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/provider/Contacts.PhonesColumns#NUMBER`

*This constant is deprecated. see `https://developer.android.com/reference/android/provider/ContactsContract`*
`https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/provider/Contacts.PhonesColumns#NUMBER_KEY`

*This constant is deprecated. see `https://developer.android.com/reference/android/provider/ContactsContract`*
`https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/provider/Contacts.PhonesColumns#TYPE`

*This constant is deprecated. see `https://developer.android.com/reference/android/provider/ContactsContract`*
`int` `https://developer.android.com/reference/android/provider/Contacts.PhonesColumns#TYPE_CUSTOM`

*This constant is deprecated. see `https://developer.android.com/reference/android/provider/ContactsContract`*
`int` `https://developer.android.com/reference/android/provider/Contacts.PhonesColumns#TYPE_FAX_HOME`

*This constant is deprecated. see `https://developer.android.com/reference/android/provider/ContactsContract`*
`int` `https://developer.android.com/reference/android/provider/Contacts.PhonesColumns#TYPE_FAX_WORK`

*This constant is deprecated. see `https://developer.android.com/reference/android/provider/ContactsContract`*
`int` `https://developer.android.com/reference/android/provider/Contacts.PhonesColumns#TYPE_HOME`

*This constant is deprecated. see `https://developer.android.com/reference/android/provider/ContactsContract`*
`int` `https://developer.android.com/reference/android/provider/Contacts.PhonesColumns#TYPE_MOBILE`

*This constant is deprecated. see `https://developer.android.com/reference/android/provider/ContactsContract`*
`int` `https://developer.android.com/reference/android/provider/Contacts.PhonesColumns#TYPE_OTHER`

*This constant is deprecated. see `https://developer.android.com/reference/android/provider/ContactsContract`*
`int` `https://developer.android.com/reference/android/provider/Contacts.PhonesColumns#TYPE_PAGER`

*This constant is deprecated. see `https://developer.android.com/reference/android/provider/ContactsContract`*
`int` `https://developer.android.com/reference/android/provider/Contacts.PhonesColumns#TYPE_WORK`

*This constant is deprecated. see `https://developer.android.com/reference/android/provider/ContactsContract`*
From interface `https://developer.android.com/reference/android/provider/Contacts.PresenceColumns` `int` `https://developer.android.com/reference/android/provider/Contacts.PresenceColumns#AVAILABLE`

<br />

`int` `https://developer.android.com/reference/android/provider/Contacts.PresenceColumns#AWAY`

<br />

`int` `https://developer.android.com/reference/android/provider/Contacts.PresenceColumns#DO_NOT_DISTURB`

<br />

`int` `https://developer.android.com/reference/android/provider/Contacts.PresenceColumns#IDLE`

<br />

`https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/provider/Contacts.PresenceColumns#IM_ACCOUNT`

*This constant is deprecated. see `https://developer.android.com/reference/android/provider/ContactsContract`*
`https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/provider/Contacts.PresenceColumns#IM_HANDLE`

*This constant is deprecated. see `https://developer.android.com/reference/android/provider/ContactsContract`*
`https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/provider/Contacts.PresenceColumns#IM_PROTOCOL`

*This constant is deprecated. see `https://developer.android.com/reference/android/provider/ContactsContract`*
`int` `https://developer.android.com/reference/android/provider/Contacts.PresenceColumns#INVISIBLE`

<br />

`int` `https://developer.android.com/reference/android/provider/Contacts.PresenceColumns#OFFLINE`

Presence Status definition
`https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/provider/Contacts.PresenceColumns#PRESENCE_CUSTOM_STATUS`

The user defined status line.
`https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/provider/Contacts.PresenceColumns#PRESENCE_STATUS`

The server defined status.
`https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/provider/Contacts.PresenceColumns#PRIORITY`

The priority, an integer, used by XMPP presence

Type: INTEGER

<br />

| ### Fields ||
|---|---|
| ` public static final https://developer.android.com/reference/android/net/Uri` | `https://developer.android.com/reference/android/provider/Contacts.People#CONTENT_FILTER_URI` *This field is deprecated. see `https://developer.android.com/reference/android/provider/ContactsContract`* |
| ` public static final https://developer.android.com/reference/android/net/Uri` | `https://developer.android.com/reference/android/provider/Contacts.People#CONTENT_URI` *This field is deprecated. see `https://developer.android.com/reference/android/provider/ContactsContract`* |
| ` public static final https://developer.android.com/reference/android/net/Uri` | `https://developer.android.com/reference/android/provider/Contacts.People#DELETED_CONTENT_URI` *This field is deprecated. see `https://developer.android.com/reference/android/provider/ContactsContract`* |

| ### Public methods ||
|---|---|
| ` static https://developer.android.com/reference/android/net/Uri` | ` https://developer.android.com/reference/android/provider/Contacts.People#addToGroup(android.content.ContentResolver,%20long,%20long)(https://developer.android.com/reference/android/content/ContentResolver resolver, long personId, long groupId) ` *This method is deprecated. see `https://developer.android.com/reference/android/provider/ContactsContract`* |
| ` static https://developer.android.com/reference/android/net/Uri` | ` https://developer.android.com/reference/android/provider/Contacts.People#addToGroup(android.content.ContentResolver,%20long,%20java.lang.String)(https://developer.android.com/reference/android/content/ContentResolver resolver, long personId, https://developer.android.com/reference/java/lang/String groupName) ` *This method is deprecated. see `https://developer.android.com/reference/android/provider/ContactsContract`* |
| ` static https://developer.android.com/reference/android/net/Uri` | ` https://developer.android.com/reference/android/provider/Contacts.People#addToMyContactsGroup(android.content.ContentResolver,%20long)(https://developer.android.com/reference/android/content/ContentResolver resolver, long personId) ` *This method is deprecated. see `https://developer.android.com/reference/android/provider/ContactsContract`* |
| ` static https://developer.android.com/reference/android/net/Uri` | ` https://developer.android.com/reference/android/provider/Contacts.People#createPersonInMyContactsGroup(android.content.ContentResolver,%20android.content.ContentValues)(https://developer.android.com/reference/android/content/ContentResolver resolver, https://developer.android.com/reference/android/content/ContentValues values) ` *This method is deprecated. see `https://developer.android.com/reference/android/provider/ContactsContract`* |
| ` static https://developer.android.com/reference/android/graphics/Bitmap` | ` https://developer.android.com/reference/android/provider/Contacts.People#loadContactPhoto(android.content.Context,%20android.net.Uri,%20int,%20android.graphics.BitmapFactory.Options)(https://developer.android.com/reference/android/content/Context context, https://developer.android.com/reference/android/net/Uri person, int placeholderImageResource, https://developer.android.com/reference/android/graphics/BitmapFactory.Options options) ` *This method is deprecated. see `https://developer.android.com/reference/android/provider/ContactsContract`* |
| ` static void` | ` https://developer.android.com/reference/android/provider/Contacts.People#markAsContacted(android.content.ContentResolver,%20long)(https://developer.android.com/reference/android/content/ContentResolver resolver, long personId) ` This API is no longer supported as of O. |
| ` static https://developer.android.com/reference/java/io/InputStream` | ` https://developer.android.com/reference/android/provider/Contacts.People#openContactPhotoInputStream(android.content.ContentResolver,%20android.net.Uri)(https://developer.android.com/reference/android/content/ContentResolver cr, https://developer.android.com/reference/android/net/Uri person) ` *This method is deprecated. see `https://developer.android.com/reference/android/provider/ContactsContract`* |
| ` static https://developer.android.com/reference/android/database/Cursor` | ` https://developer.android.com/reference/android/provider/Contacts.People#queryGroups(android.content.ContentResolver,%20long)(https://developer.android.com/reference/android/content/ContentResolver resolver, long person) ` *This method is deprecated. see `https://developer.android.com/reference/android/provider/ContactsContract`* |
| ` static void` | ` https://developer.android.com/reference/android/provider/Contacts.People#setPhotoData(android.content.ContentResolver,%20android.net.Uri,%20byte[])(https://developer.android.com/reference/android/content/ContentResolver cr, https://developer.android.com/reference/android/net/Uri person, byte[] data) ` *This method is deprecated. see `https://developer.android.com/reference/android/provider/ContactsContract`* |

### Inherited methods

From class ` https://developer.android.com/reference/java/lang/Object ` ` https://developer.android.com/reference/java/lang/Object` ` https://developer.android.com/reference/java/lang/Object#clone()() `

Creates and returns a copy of this object.
` boolean` ` https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object)(https://developer.android.com/reference/java/lang/Object obj) `

Indicates whether some other object is "equal to" this one.
` void` ` 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 https://developer.android.com/reference/java/lang/Class<?>` ` https://developer.android.com/reference/java/lang/Object#getClass()() `

Returns the runtime class of this `Object`.
` int` ` https://developer.android.com/reference/java/lang/Object#hashCode()() `

Returns a hash code value for the object.
` final void` ` https://developer.android.com/reference/java/lang/Object#notify()() `

Wakes up a single thread that is waiting on this object's monitor.
` final void` ` https://developer.android.com/reference/java/lang/Object#notifyAll()() `

Wakes up all threads that are waiting on this object's monitor.
` https://developer.android.com/reference/java/lang/String` ` https://developer.android.com/reference/java/lang/Object#toString()() `

Returns a string representation of the object.
` final void` ` 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` ` 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` ` 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_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 `https://developer.android.com/reference/android/provider/ContactsContract`

The MIME type of a `https://developer.android.com/reference/android/provider/Contacts.People#CONTENT_URI` subdirectory of a single person.

<br />

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

### 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 `https://developer.android.com/reference/android/provider/ContactsContract`

The MIME type of `https://developer.android.com/reference/android/provider/Contacts.People#CONTENT_URI` providing a directory of people.

<br />

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

### 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 `https://developer.android.com/reference/android/provider/ContactsContract`

The default sort order for this table

<br />

Constant Value: "name ASC"

### PRIMARY_EMAIL_ID

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

```
public static final String PRIMARY_EMAIL_ID
```

<br />

**This constant is deprecated.**   

see `https://developer.android.com/reference/android/provider/ContactsContract`

The ID of the persons preferred email.

Type: INTEGER (foreign key to contact_methods table on the _ID field)

<br />

<br />

Constant Value: "primary_email"

### PRIMARY_ORGANIZATION_ID

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

```
public static final String PRIMARY_ORGANIZATION_ID
```

<br />

**This constant is deprecated.**   

see `https://developer.android.com/reference/android/provider/ContactsContract`

The ID of the persons preferred organization.

Type: INTEGER (foreign key to organizations table on the _ID field)

<br />

<br />

Constant Value: "primary_organization"

### PRIMARY_PHONE_ID

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

```
public static final String PRIMARY_PHONE_ID
```

<br />

**This constant is deprecated.**   

see `https://developer.android.com/reference/android/provider/ContactsContract`

The ID of the persons preferred phone number.

Type: INTEGER (foreign key to phones table on the _ID field)

<br />

<br />

Constant Value: "primary_phone"

## Fields

### CONTENT_FILTER_URI

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

```
public static final Uri CONTENT_FILTER_URI
```

<br />

**This field is deprecated.**   

see `https://developer.android.com/reference/android/provider/ContactsContract`

The content:// style URL for filtering people by name. The filter argument should be passed as an additional path segment after this URI.

<br />

### 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 `https://developer.android.com/reference/android/provider/ContactsContract`

The content:// style URL for this table

<br />

### DELETED_CONTENT_URI

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

```
public static final Uri DELETED_CONTENT_URI
```

<br />

**This field is deprecated.**   

see `https://developer.android.com/reference/android/provider/ContactsContract`

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

<br />

## Public methods

### addToGroup

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

```
public static Uri addToGroup (ContentResolver resolver, 
                long personId, 
                long groupId)
```

<br />

**This method is deprecated.**   

see `https://developer.android.com/reference/android/provider/ContactsContract`

Adds a person to a group.

<br />

| Parameters ||
|---|---|
| `resolver` | `ContentResolver`: the resolver to use <br /> |
| `personId` | `long`: the person to add to the group <br /> |
| `groupId` | `long`: the group to add the person to <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/net/Uri` | the URI of the group membership row <br /> |

### addToGroup

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

```
public static Uri addToGroup (ContentResolver resolver, 
                long personId, 
                String groupName)
```

<br />

**This method is deprecated.**   

see `https://developer.android.com/reference/android/provider/ContactsContract`

Adds a person to a group referred to by name.

<br />

| Parameters ||
|---|---|
| `resolver` | `ContentResolver`: the resolver to use <br /> |
| `personId` | `long`: the person to add to the group <br /> |
| `groupName` | `String`: the name of the group to add the contact to <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/net/Uri` | the URI of the group membership row <br /> |

| Throws ||
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalStateException` | if the group can't be found |

### addToMyContactsGroup

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

```
public static Uri addToMyContactsGroup (ContentResolver resolver, 
                long personId)
```

<br />

**This method is deprecated.**   

see `https://developer.android.com/reference/android/provider/ContactsContract`

Adds a person to the My Contacts group.

<br />

| Parameters ||
|---|---|
| `resolver` | `ContentResolver`: the resolver to use <br /> |
| `personId` | `long`: the person to add to the group <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/net/Uri` | the URI of the group membership row <br /> |

| Throws ||
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalStateException` | if the My Contacts group can't be found |

### createPersonInMyContactsGroup

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

```
public static Uri createPersonInMyContactsGroup (ContentResolver resolver, 
                ContentValues values)
```

<br />

**This method is deprecated.**   

see `https://developer.android.com/reference/android/provider/ContactsContract`

Creates a new contacts and adds it to the "My Contacts" group.

<br />

| Parameters ||
|---|---|
| `resolver` | `ContentResolver`: the ContentResolver to use <br /> |
| `values` | `ContentValues`: the values to use when creating the contact <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/net/Uri` | the URI of the contact, or null if the operation fails <br /> |

### loadContactPhoto

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

```
public static Bitmap loadContactPhoto (Context context, 
                Uri person, 
                int placeholderImageResource, 
                BitmapFactory.Options options)
```

<br />

**This method is deprecated.**   

see `https://developer.android.com/reference/android/provider/ContactsContract`

Opens an InputStream for the person's photo and returns the photo as a Bitmap. If the person's photo isn't present returns the placeholderImageResource instead.

<br />

| Parameters ||
|---|---|
| `context` | `Context`: the Context <br /> |
| `person` | `Uri`: the person whose photo should be used <br /> |
| `placeholderImageResource` | `int`: the image resource to use if the person doesn't have a photo <br /> |
| `options` | `BitmapFactory.Options`: the decoding options, can be set to null <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/graphics/Bitmap` | <br /> |

### markAsContacted

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

```
public static void markAsContacted (ContentResolver resolver, 
                long personId)
```

This API is no longer supported as of O.

<br />

| Parameters ||
|---|---|
| `resolver` | `ContentResolver` <br /> |
| `personId` | `long` <br /> |

### openContactPhotoInputStream

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

```
public static InputStream openContactPhotoInputStream (ContentResolver cr, 
                Uri person)
```

<br />

**This method is deprecated.**   

see `https://developer.android.com/reference/android/provider/ContactsContract`

Opens an InputStream for the person's photo and returns the photo as a Bitmap. If the person's photo isn't present returns the placeholderImageResource instead.

<br />

| Parameters ||
|---|---|
| `cr` | `ContentResolver` <br /> |
| `person` | `Uri`: the person whose photo should be used <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/io/InputStream` | <br /> |

### queryGroups

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

```
public static Cursor queryGroups (ContentResolver resolver, 
                long person)
```

<br />

**This method is deprecated.**   

see `https://developer.android.com/reference/android/provider/ContactsContract`

<br />

<br />

| Parameters ||
|---|---|
| `resolver` | `ContentResolver` <br /> |
| `person` | `long` <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/database/Cursor` | <br /> |

### setPhotoData

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

```
public static void setPhotoData (ContentResolver cr, 
                Uri person, 
                byte[] data)
```

<br />

**This method is deprecated.**   

see `https://developer.android.com/reference/android/provider/ContactsContract`

Set the photo for this person. data may be null

<br />

| Parameters ||
|---|---|
| `cr` | `ContentResolver`: the ContentResolver to use <br /> |
| `person` | `Uri`: the Uri of the person whose photo is to be updated <br /> |
| `data` | `byte`: the byte\[\] that represents the photo <br /> |