# Print output for @column tags ?>
Developers

- Design
- Develop
- Distribute

Developer Console

## Most visited

## Recently visited

## Results for

Summary: Constants | Fields | Inherited Methods

# ContactsContract.DisplayPhoto

`public static final class ContactsContract.DisplayPhoto`
`extends Object` ``

java.lang.Object
↳ | android.provider.ContactsContract.DisplayPhoto

Helper class for accessing full-size photos by photo file ID.

Usage example:

Retrieving a full-size photo by photo file ID (see `ContactsContract.ContactsColumns#PHOTO_FILE_ID`)

       public InputStream openDisplayPhoto(long photoFileId) {
           Uri displayPhotoUri = ContentUris.withAppendedId(DisplayPhoto.CONTENT_URI, photoKey);
           try {
               AssetFileDescriptor fd = getContentResolver().openAssetFileDescriptor(
                   displayPhotoUri, "r");
               return fd.createInputStream();
           } catch (IOException e) {
               return null;
           }
       }

## Summary

### Constants
`String` | `DISPLAY_MAX_DIM` Queries to `ContactsContract.DisplayPhoto#CONTENT_MAX_DIMENSIONS_URI` will contain this column, populated with the maximum height and width (in pixels) that will be stored for a display photo.
`String` | `THUMBNAIL_MAX_DIM` Queries to `ContactsContract.DisplayPhoto#CONTENT_MAX_DIMENSIONS_URI` will contain this column, populated with the height and width (in pixels) for photo thumbnails.

### Fields
`public static final Uri` | `CONTENT_MAX_DIMENSIONS_URI` This URI allows the caller to query for the maximum dimensions of a display photo or thumbnail.
`public static final Uri` | `CONTENT_URI` The content:// style URI for this class, which allows access to full-size photos, given a key.

### Inherited methods
From class `java.lang.Object`
`Object` | `clone()` Creates and returns a copy of this object.
`boolean` | `equals(Object obj)` Indicates whether some other object is "equal to" this one.
`void` | `finalize()` Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.
`final Class<?>` | `getClass()` Returns the runtime class of this `Object`.
`int` | `hashCode()` Returns a hash code value for the object.
`final void` | `notify()` Wakes up a single thread that is waiting on this object's monitor.
`final void` | `notifyAll()` Wakes up all threads that are waiting on this object's monitor.
`String` | `toString()` Returns a string representation of the object.
`final void` | `wait(long timeout, int nanos)` Causes the current thread to wait until another thread invokes the `notify()` method or the `notifyAll()` method for this object, or some other thread interrupts the current thread, or a certain amount of real time has elapsed.
`final void` | `wait(long timeout)` Causes the current thread to wait until either another thread invokes the `notify()` method or the `notifyAll()` method for this object, or a specified amount of time has elapsed.
`final void` | `wait()` Causes the current thread to wait until another thread invokes the `notify()` method or the `notifyAll()` method for this object.

## Constants

### DISPLAY_MAX_DIM

    public static final String DISPLAY_MAX_DIM

Queries to `ContactsContract.DisplayPhoto#CONTENT_MAX_DIMENSIONS_URI` will contain this column, populated with the maximum height and width (in pixels) that will be stored for a display photo. Larger photos will be down-sized to fit within a square of this many pixels.

Constant Value: "display_max_dim"

### THUMBNAIL_MAX_DIM

    public static final String THUMBNAIL_MAX_DIM

Queries to `ContactsContract.DisplayPhoto#CONTENT_MAX_DIMENSIONS_URI` will contain this column, populated with the height and width (in pixels) for photo thumbnails.

Constant Value: "thumbnail_max_dim"

## Fields

### CONTENT_MAX_DIMENSIONS_URI

    public static final Uri CONTENT_MAX_DIMENSIONS_URI

This URI allows the caller to query for the maximum dimensions of a display photo or thumbnail. Requests to this URI can be performed on the UI thread because they are always unblocking.

### CONTENT_URI

    public static final Uri CONTENT_URI

The content:// style URI for this class, which allows access to full-size photos, given a key.

Full name *
Email address *
Company / developer name
One of your Play Store app URLs *
Which best describes your business:*
Apps
Games
Apps & Games
*
*