IT. Expert System.

Android Reference

ContactsContract.DisplayPhoto


android.provider

Class ContactsContract.DisplayPhoto

  • Enclosing class:
    ContactsContract


    public static final class ContactsContract.DisplayPhoto
    extends Object
    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;
         }
     }
     

    • Field Detail

      • 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.
      • 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.
      • DISPLAY_MAX_DIM

        public static final String DISPLAY_MAX_DIM
        Queries to 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.
        See Also:
        Constant Field Values


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 489 / 158776086. Delta: 0.04577 с