Added in [API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels) Summary: [Constants](https://developer.android.com/reference/android/provider/ContactsContract.QuickContact#constants) \| [Ctors](https://developer.android.com/reference/android/provider/ContactsContract.QuickContact#pubctors) \| [Methods](https://developer.android.com/reference/android/provider/ContactsContract.QuickContact#pubmethods) \| [Inherited Methods](https://developer.android.com/reference/android/provider/ContactsContract.QuickContact#inhmethods)

# ContactsContract.QuickContact

*** ** * ** ***

` public static final class ContactsContract.QuickContact `   
` extends https://developer.android.com/reference/java/lang/Object ` ` `

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

<br />

*** ** * ** ***

Helper methods to display QuickContact dialogs that display all the information belonging to a specific `https://developer.android.com/reference/android/provider/ContactsContract.Contacts` entry.

## Summary

| ### Constants ||
|---|---|
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/ContactsContract.QuickContact#ACTION_QUICK_CONTACT` Action used to launch the system contacts application and bring up a QuickContact dialog for the provided `https://developer.android.com/reference/android/provider/ContactsContract.Contacts` entry. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/ContactsContract.QuickContact#EXTRA_EXCLUDE_MIMES` Extra used to indicate a list of specific MIME-types to exclude and not display in the QuickContacts dialog. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/ContactsContract.QuickContact#EXTRA_MODE` Extra used to specify size of QuickContacts. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/ContactsContract.QuickContact#EXTRA_PRIORITIZED_MIMETYPE` Extra used to specify which mimetype should be prioritized in the QuickContacts UI. |
| `int` | `https://developer.android.com/reference/android/provider/ContactsContract.QuickContact#MODE_LARGE` Large QuickContact mode, includes actions and larger, card-like summary of the `https://developer.android.com/reference/android/provider/ContactsContract.Contacts` entry being shown. |
| `int` | `https://developer.android.com/reference/android/provider/ContactsContract.QuickContact#MODE_MEDIUM` Medium QuickContact mode, includes actions and light summary describing the `https://developer.android.com/reference/android/provider/ContactsContract.Contacts` entry being shown. |
| `int` | `https://developer.android.com/reference/android/provider/ContactsContract.QuickContact#MODE_SMALL` Small QuickContact mode, usually presented with minimal actions. |

| ### Public constructors ||
|---|---|
| ` https://developer.android.com/reference/android/provider/ContactsContract.QuickContact#QuickContact()() ` |

| ### Public methods ||
|---|---|
| ` static void` | ` https://developer.android.com/reference/android/provider/ContactsContract.QuickContact#showQuickContact(android.content.Context,%20android.view.View,%20android.net.Uri,%20java.lang.String[],%20java.lang.String)(https://developer.android.com/reference/android/content/Context context, https://developer.android.com/reference/android/view/View target, https://developer.android.com/reference/android/net/Uri lookupUri, https://developer.android.com/reference/java/lang/String excludeMimes, https://developer.android.com/reference/java/lang/String prioritizedMimeType) ` Trigger a dialog that lists the various methods of interacting with the requested `https://developer.android.com/reference/android/provider/ContactsContract.Contacts` entry. |
| ` static void` | ` https://developer.android.com/reference/android/provider/ContactsContract.QuickContact#showQuickContact(android.content.Context,%20android.graphics.Rect,%20android.net.Uri,%20int,%20java.lang.String[])(https://developer.android.com/reference/android/content/Context context, https://developer.android.com/reference/android/graphics/Rect target, https://developer.android.com/reference/android/net/Uri lookupUri, int mode, https://developer.android.com/reference/java/lang/String excludeMimes) ` Trigger a dialog that lists the various methods of interacting with the requested `https://developer.android.com/reference/android/provider/ContactsContract.Contacts` entry. |
| ` static void` | ` https://developer.android.com/reference/android/provider/ContactsContract.QuickContact#showQuickContact(android.content.Context,%20android.view.View,%20android.net.Uri,%20int,%20java.lang.String[])(https://developer.android.com/reference/android/content/Context context, https://developer.android.com/reference/android/view/View target, https://developer.android.com/reference/android/net/Uri lookupUri, int mode, https://developer.android.com/reference/java/lang/String excludeMimes) ` Trigger a dialog that lists the various methods of interacting with the requested `https://developer.android.com/reference/android/provider/ContactsContract.Contacts` entry. |
| ` static void` | ` https://developer.android.com/reference/android/provider/ContactsContract.QuickContact#showQuickContact(android.content.Context,%20android.graphics.Rect,%20android.net.Uri,%20java.lang.String[],%20java.lang.String)(https://developer.android.com/reference/android/content/Context context, https://developer.android.com/reference/android/graphics/Rect target, https://developer.android.com/reference/android/net/Uri lookupUri, https://developer.android.com/reference/java/lang/String excludeMimes, https://developer.android.com/reference/java/lang/String prioritizedMimeType) ` Trigger a dialog that lists the various methods of interacting with the requested `https://developer.android.com/reference/android/provider/ContactsContract.Contacts` entry. |

### 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

### ACTION_QUICK_CONTACT

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

```
public static final String ACTION_QUICK_CONTACT
```

Action used to launch the system contacts application and bring up a QuickContact dialog for the provided `https://developer.android.com/reference/android/provider/ContactsContract.Contacts` entry.

<br />

Constant Value: "android.provider.action.QUICK_CONTACT"

### EXTRA_EXCLUDE_MIMES

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

```
public static final String EXTRA_EXCLUDE_MIMES
```

Extra used to indicate a list of specific MIME-types to exclude and not display in the QuickContacts dialog. Stored as a `https://developer.android.com/reference/java/lang/String` array.

<br />

Constant Value: "android.provider.extra.EXCLUDE_MIMES"

### EXTRA_MODE

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

```
public static final String EXTRA_MODE
```

Extra used to specify size of QuickContacts. Not all implementations of QuickContacts will respect this extra's value. One of `https://developer.android.com/reference/android/provider/ContactsContract.QuickContact#MODE_SMALL`, `https://developer.android.com/reference/android/provider/ContactsContract.QuickContact#MODE_MEDIUM`, or `https://developer.android.com/reference/android/provider/ContactsContract.QuickContact#MODE_LARGE`.

<br />

Constant Value: "android.provider.extra.MODE"

### EXTRA_PRIORITIZED_MIMETYPE

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

```
public static final String EXTRA_PRIORITIZED_MIMETYPE
```

Extra used to specify which mimetype should be prioritized in the QuickContacts UI. For example, passing the value `https://developer.android.com/reference/android/provider/ContactsContract.CommonDataKinds.Phone#CONTENT_ITEM_TYPE` can cause phone numbers to be displayed more prominently in QuickContacts.

<br />

Constant Value: "android.provider.extra.PRIORITIZED_MIMETYPE"

### MODE_LARGE

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

```
public static final int MODE_LARGE
```

Large QuickContact mode, includes actions and larger, card-like summary of the `https://developer.android.com/reference/android/provider/ContactsContract.Contacts` entry being shown. This may include detailed information, such as a photo.

<br />

Constant Value: 3 (0x00000003)

### MODE_MEDIUM

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

```
public static final int MODE_MEDIUM
```

Medium QuickContact mode, includes actions and light summary describing the `https://developer.android.com/reference/android/provider/ContactsContract.Contacts` entry being shown. This may include social status and presence details.

<br />

Constant Value: 2 (0x00000002)

### MODE_SMALL

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

```
public static final int MODE_SMALL
```

Small QuickContact mode, usually presented with minimal actions.

<br />

Constant Value: 1 (0x00000001)

## Public constructors

### QuickContact

```
public QuickContact ()
```

<br />

<br />

## Public methods

### showQuickContact

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

```
public static void showQuickContact (Context context, 
                View target, 
                Uri lookupUri, 
                String[] excludeMimes, 
                String prioritizedMimeType)
```

Trigger a dialog that lists the various methods of interacting with the requested `https://developer.android.com/reference/android/provider/ContactsContract.Contacts` entry. This may be based on available `https://developer.android.com/reference/android/provider/ContactsContract.Data` rows under that contact, and may also include social status and presence details.

<br />

| Parameters ||
|---|---|
| `context` | `Context`: The parent `https://developer.android.com/reference/android/content/Context` that may be used as the parent for this dialog. <br /> |
| `target` | `View`: Specific `https://developer.android.com/reference/android/view/View` from your layout that this dialog should be centered around. In particular, if the dialog has a "callout" arrow, it will be pointed and centered around this `https://developer.android.com/reference/android/view/View`. <br /> |
| `lookupUri` | `Uri`: A `https://developer.android.com/reference/android/provider/ContactsContract.Contacts#CONTENT_LOOKUP_URI` style `https://developer.android.com/reference/android/net/Uri` that describes a specific contact to feature in this dialog. A managed profile lookup uri is supported here, see `https://developer.android.com/reference/android/provider/ContactsContract.CommonDataKinds.Email#ENTERPRISE_CONTENT_LOOKUP_URI` and `https://developer.android.com/reference/android/provider/ContactsContract.PhoneLookup#ENTERPRISE_CONTENT_FILTER_URI`. <br /> |
| `excludeMimes` | `String`: Optional list of `https://developer.android.com/reference/android/provider/ContactsContract.DataColumns#MIMETYPE` MIME-types to exclude when showing this dialog. For example, when already viewing the contact details card, this can be used to omit the details entry from the dialog. <br /> |
| `prioritizedMimeType` | `String`: This mimetype should be prioritized in the QuickContacts UI. For example, passing the value `https://developer.android.com/reference/android/provider/ContactsContract.CommonDataKinds.Phone#CONTENT_ITEM_TYPE` can cause phone numbers to be displayed more prominently in QuickContacts. <br /> |

### showQuickContact

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

```
public static void showQuickContact (Context context, 
                Rect target, 
                Uri lookupUri, 
                int mode, 
                String[] excludeMimes)
```

Trigger a dialog that lists the various methods of interacting with the requested `https://developer.android.com/reference/android/provider/ContactsContract.Contacts` entry. This may be based on available `https://developer.android.com/reference/android/provider/ContactsContract.Data` rows under that contact, and may also include social status and presence details.

<br />

| Parameters ||
|---|---|
| `context` | `Context`: The parent `https://developer.android.com/reference/android/content/Context` that may be used as the parent for this dialog. <br /> |
| `target` | `Rect`: Specific `https://developer.android.com/reference/android/graphics/Rect` that this dialog should be centered around, in screen coordinates. In particular, if the dialog has a "callout" arrow, it will be pointed and centered around this `https://developer.android.com/reference/android/graphics/Rect`. If you are running at a non-native density, you need to manually adjust using `https://developer.android.com/reference/android/util/DisplayMetrics#density` before calling. <br /> |
| `lookupUri` | `Uri`: A `https://developer.android.com/reference/android/provider/ContactsContract.Contacts#CONTENT_LOOKUP_URI` style `https://developer.android.com/reference/android/net/Uri` that describes a specific contact to feature in this dialog. A managed profile lookup uri is supported here, see `https://developer.android.com/reference/android/provider/ContactsContract.CommonDataKinds.Email#ENTERPRISE_CONTENT_LOOKUP_URI` and `https://developer.android.com/reference/android/provider/ContactsContract.PhoneLookup#ENTERPRISE_CONTENT_FILTER_URI`. <br /> |
| `mode` | `int`: Any of `https://developer.android.com/reference/android/provider/ContactsContract.QuickContact#MODE_SMALL`, `https://developer.android.com/reference/android/provider/ContactsContract.QuickContact#MODE_MEDIUM`, or `https://developer.android.com/reference/android/provider/ContactsContract.QuickContact#MODE_LARGE`, indicating the desired dialog size, when supported. <br /> |
| `excludeMimes` | `String`: Optional list of `https://developer.android.com/reference/android/provider/ContactsContract.DataColumns#MIMETYPE` MIME-types to exclude when showing this dialog. For example, when already viewing the contact details card, this can be used to omit the details entry from the dialog. <br /> |

### showQuickContact

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

```
public static void showQuickContact (Context context, 
                View target, 
                Uri lookupUri, 
                int mode, 
                String[] excludeMimes)
```

Trigger a dialog that lists the various methods of interacting with the requested `https://developer.android.com/reference/android/provider/ContactsContract.Contacts` entry. This may be based on available `https://developer.android.com/reference/android/provider/ContactsContract.Data` rows under that contact, and may also include social status and presence details.

<br />

| Parameters ||
|---|---|
| `context` | `Context`: The parent `https://developer.android.com/reference/android/content/Context` that may be used as the parent for this dialog. <br /> |
| `target` | `View`: Specific `https://developer.android.com/reference/android/view/View` from your layout that this dialog should be centered around. In particular, if the dialog has a "callout" arrow, it will be pointed and centered around this `https://developer.android.com/reference/android/view/View`. <br /> |
| `lookupUri` | `Uri`: A `https://developer.android.com/reference/android/provider/ContactsContract.Contacts#CONTENT_LOOKUP_URI` style `https://developer.android.com/reference/android/net/Uri` that describes a specific contact to feature in this dialog. A managed profile lookup uri is supported here, see `https://developer.android.com/reference/android/provider/ContactsContract.CommonDataKinds.Email#ENTERPRISE_CONTENT_LOOKUP_URI` and `https://developer.android.com/reference/android/provider/ContactsContract.PhoneLookup#ENTERPRISE_CONTENT_FILTER_URI`. <br /> |
| `mode` | `int`: Any of `https://developer.android.com/reference/android/provider/ContactsContract.QuickContact#MODE_SMALL`, `https://developer.android.com/reference/android/provider/ContactsContract.QuickContact#MODE_MEDIUM`, or `https://developer.android.com/reference/android/provider/ContactsContract.QuickContact#MODE_LARGE`, indicating the desired dialog size, when supported. <br /> |
| `excludeMimes` | `String`: Optional list of `https://developer.android.com/reference/android/provider/ContactsContract.DataColumns#MIMETYPE` MIME-types to exclude when showing this dialog. For example, when already viewing the contact details card, this can be used to omit the details entry from the dialog. <br /> |

### showQuickContact

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

```
public static void showQuickContact (Context context, 
                Rect target, 
                Uri lookupUri, 
                String[] excludeMimes, 
                String prioritizedMimeType)
```

Trigger a dialog that lists the various methods of interacting with the requested `https://developer.android.com/reference/android/provider/ContactsContract.Contacts` entry. This may be based on available `https://developer.android.com/reference/android/provider/ContactsContract.Data` rows under that contact, and may also include social status and presence details.

<br />

| Parameters ||
|---|---|
| `context` | `Context`: The parent `https://developer.android.com/reference/android/content/Context` that may be used as the parent for this dialog. <br /> |
| `target` | `Rect`: Specific `https://developer.android.com/reference/android/graphics/Rect` that this dialog should be centered around, in screen coordinates. In particular, if the dialog has a "callout" arrow, it will be pointed and centered around this `https://developer.android.com/reference/android/graphics/Rect`. If you are running at a non-native density, you need to manually adjust using `https://developer.android.com/reference/android/util/DisplayMetrics#density` before calling. <br /> |
| `lookupUri` | `Uri`: A `https://developer.android.com/reference/android/provider/ContactsContract.Contacts#CONTENT_LOOKUP_URI` style `https://developer.android.com/reference/android/net/Uri` that describes a specific contact to feature in this dialog. A managed profile lookup uri is supported here, see `https://developer.android.com/reference/android/provider/ContactsContract.CommonDataKinds.Email#ENTERPRISE_CONTENT_LOOKUP_URI` and `https://developer.android.com/reference/android/provider/ContactsContract.PhoneLookup#ENTERPRISE_CONTENT_FILTER_URI`. <br /> |
| `excludeMimes` | `String`: Optional list of `https://developer.android.com/reference/android/provider/ContactsContract.DataColumns#MIMETYPE` MIME-types to exclude when showing this dialog. For example, when already viewing the contact details card, this can be used to omit the details entry from the dialog. <br /> |
| `prioritizedMimeType` | `String`: This mimetype should be prioritized in the QuickContacts UI. For example, passing the value `https://developer.android.com/reference/android/provider/ContactsContract.CommonDataKinds.Phone#CONTENT_ITEM_TYPE` can cause phone numbers to be displayed more prominently in QuickContacts. <br /> |