IT. Expert System.

Android Reference

MediaStore.Images.Thumbnails


android.provider

Class MediaStore.Images.Thumbnails

  • All Implemented Interfaces:
    BaseColumns
    Enclosing class:
    MediaStore.Images


    public static class MediaStore.Images.Thumbnails
    extends Object
    implements BaseColumns
    This class allows developers to query and get two kinds of thumbnails: MINI_KIND: 512 x 384 thumbnail MICRO_KIND: 96 x 96 thumbnail
    • Field Detail

      • INTERNAL_CONTENT_URI

        public static final Uri INTERNAL_CONTENT_URI
        The content:// style URI for the internal storage.
      • EXTERNAL_CONTENT_URI

        public static final Uri EXTERNAL_CONTENT_URI
        The content:// style URI for the "primary" external storage volume.
      • DEFAULT_SORT_ORDER

        public static final String DEFAULT_SORT_ORDER
        The default sort order for this table
        See Also:
        Constant Field Values
      • IMAGE_ID

        public static final String IMAGE_ID
        The original image for the thumbnal

        Type: INTEGER (ID from Images table)

        See Also:
        Constant Field Values
      • KIND

        public static final String KIND
        The kind of the thumbnail

        Type: INTEGER (One of the values below)

        See Also:
        Constant Field Values
    • Constructor Detail

      • MediaStore.Images.Thumbnails

        public MediaStore.Images.Thumbnails()
    • Method Detail

      • cancelThumbnailRequest

        public static void cancelThumbnailRequest(ContentResolver cr,
                                  long origId)
        This method cancels the thumbnail request so clients waiting for getThumbnail will be interrupted and return immediately. Only the original process which made the getThumbnail requests can cancel their own requests.
        Parameters:
        cr - ContentResolver
        origId - original image id
      • getThumbnail

        public static Bitmap getThumbnail(ContentResolver cr,
                          long origId,
                          int kind,
                          BitmapFactory.Options options)
        This method checks if the thumbnails of the specified image (origId) has been created. It will be blocked until the thumbnails are generated.
        Parameters:
        cr - ContentResolver used to dispatch queries to MediaProvider.
        origId - Original image id associated with thumbnail of interest.
        kind - The type of thumbnail to fetch. Should be either MINI_KIND or MICRO_KIND.
        options - this is only used for MINI_KIND when decoding the Bitmap
        Returns:
        A Bitmap instance. It could be null if the original image associated with origId doesn't exist or memory is not enough.
      • cancelThumbnailRequest

        public static void cancelThumbnailRequest(ContentResolver cr,
                                  long origId,
                                  long groupId)
        This method cancels the thumbnail request so clients waiting for getThumbnail will be interrupted and return immediately. Only the original process which made the getThumbnail requests can cancel their own requests.
        Parameters:
        cr - ContentResolver
        origId - original image id
        groupId - the same groupId used in getThumbnail.
      • getThumbnail

        public static Bitmap getThumbnail(ContentResolver cr,
                          long origId,
                          long groupId,
                          int kind,
                          BitmapFactory.Options options)
        This method checks if the thumbnails of the specified image (origId) has been created. It will be blocked until the thumbnails are generated.
        Parameters:
        cr - ContentResolver used to dispatch queries to MediaProvider.
        origId - Original image id associated with thumbnail of interest.
        groupId - the id of group to which this request belongs
        kind - The type of thumbnail to fetch. Should be either MINI_KIND or MICRO_KIND.
        options - this is only used for MINI_KIND when decoding the Bitmap
        Returns:
        A Bitmap instance. It could be null if the original image associated with origId doesn't exist or memory is not enough.
      • getContentUri

        public static Uri getContentUri(String volumeName)
        Get the content:// style URI for the image media table on the given volume.
        Parameters:
        volumeName - the name of the volume to get the URI for
        Returns:
        the URI to the image media table on the given volume


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: 314 / 158680773. Delta: 0.03666 с