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.Intents#nestedclasses) \| [Constants](https://developer.android.com/reference/android/provider/Contacts.Intents#constants) \| [Ctors](https://developer.android.com/reference/android/provider/Contacts.Intents#pubctors) \| [Inherited Methods](https://developer.android.com/reference/android/provider/Contacts.Intents#inhmethods)

# Contacts.Intents

*** ** * ** ***


`
public
static
final

class
Contacts.Intents
`


`

extends https://developer.android.com/reference/java/lang/Object


`

`


`

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

<br />

*** ** * ** ***


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

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

Contains helper classes used to create or manage `https://developer.android.com/reference/android/content/Intent`
that involve contacts.

## Summary

| ### Nested classes ||
|---|---|
| ` class` | `https://developer.android.com/reference/android/provider/Contacts.Intents.Insert` *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.Intents.UI` *This class was deprecated in API level 5. Do not use. This is not supported.* |

| ### Constants ||
|---|---|
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/Contacts.Intents#ATTACH_IMAGE` *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.Intents#EXTRA_CREATE_DESCRIPTION` *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.Intents#EXTRA_FORCE_CREATE` *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.Intents#SEARCH_SUGGESTION_CLICKED` *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.Intents#SEARCH_SUGGESTION_CREATE_CONTACT_CLICKED` *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.Intents#SEARCH_SUGGESTION_DIAL_NUMBER_CLICKED` *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.Intents#SHOW_OR_CREATE_CONTACT` *This constant was deprecated in API level 5. see `https://developer.android.com/reference/android/provider/ContactsContract`* |

| ### Public constructors ||
|---|---|
| ` https://developer.android.com/reference/android/provider/Contacts.Intents#Intents()() ` *This constructor 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

### ATTACH_IMAGE

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

```
public static final String ATTACH_IMAGE
```


**This constant is deprecated.**   

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

Starts an Activity that lets the user pick a contact to attach an image to.
After picking the contact it launches the image cropper in face detection mode.

<br />

Constant Value:

"com.android.contacts.action.ATTACH_IMAGE"


### EXTRA_CREATE_DESCRIPTION

Added in [API level 3](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)

```
public static final String EXTRA_CREATE_DESCRIPTION
```


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

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

Used with `https://developer.android.com/reference/android/provider/Contacts.Intents#SHOW_OR_CREATE_CONTACT` to specify an exact
description to be shown when prompting user about creating a new
contact.


Type: STRING

<br />

Constant Value:

"com.android.contacts.action.CREATE_DESCRIPTION"


### EXTRA_FORCE_CREATE

Added in [API level 3](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)

```
public static final String EXTRA_FORCE_CREATE
```


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

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

Used with `https://developer.android.com/reference/android/provider/Contacts.Intents#SHOW_OR_CREATE_CONTACT` to force creating a new
contact if no matching contact found. Otherwise, default behavior is
to prompt user with dialog before creating.


Type: BOOLEAN

<br />

Constant Value:

"com.android.contacts.action.FORCE_CREATE"


### SEARCH_SUGGESTION_CLICKED

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

```
public static final String SEARCH_SUGGESTION_CLICKED
```


**This constant is deprecated.**   

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

This is the intent that is fired when a search suggestion is clicked on.

<br />

Constant Value:

"android.provider.Contacts.SEARCH_SUGGESTION_CLICKED"


### SEARCH_SUGGESTION_CREATE_CONTACT_CLICKED

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

```
public static final String SEARCH_SUGGESTION_CREATE_CONTACT_CLICKED
```


**This constant is deprecated.**   

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

This is the intent that is fired when a search suggestion for creating a contact
is clicked on.

<br />

Constant Value:

"android.provider.Contacts.SEARCH_SUGGESTION_CREATE_CONTACT_CLICKED"


### SEARCH_SUGGESTION_DIAL_NUMBER_CLICKED

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

```
public static final String SEARCH_SUGGESTION_DIAL_NUMBER_CLICKED
```


**This constant is deprecated.**   

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

This is the intent that is fired when a search suggestion for dialing a number
is clicked on.

<br />

Constant Value:

"android.provider.Contacts.SEARCH_SUGGESTION_DIAL_NUMBER_CLICKED"


### SHOW_OR_CREATE_CONTACT

Added in [API level 3](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)

```
public static final String SHOW_OR_CREATE_CONTACT
```


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

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

Takes as input a data URI with a mailto: or tel: scheme. If a single
contact exists with the given data it will be shown. If no contact
exists, a dialog will ask the user if they want to create a new
contact with the provided details filled in. If multiple contacts
share the data the user will be prompted to pick which contact they
want to view.


For `mailto:` URIs, the scheme specific portion must be a
raw email address, such as one built using
`https://developer.android.com/reference/android/net/Uri#fromParts(java.lang.String,%20java.lang.String,%20java.lang.String)`.


For `tel:` URIs, the scheme specific portion is compared
to existing numbers using the standard caller ID lookup algorithm.
The number must be properly encoded, for example using
`https://developer.android.com/reference/android/net/Uri#fromParts(java.lang.String,%20java.lang.String,%20java.lang.String)`.


Any extras from the `https://developer.android.com/reference/android/provider/Contacts.Intents.Insert` class will be passed along to the
create activity if there are no contacts to show.


Passing true for the `https://developer.android.com/reference/android/provider/Contacts.Intents#EXTRA_FORCE_CREATE` extra will skip
prompting the user when the contact doesn't exist.

<br />

Constant Value:

"com.android.contacts.action.SHOW_OR_CREATE_CONTACT"


## Public constructors

### Intents

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

```
public Intents ()
```


**This constructor is deprecated.**   

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

<br />

<br />