public static class MediaStore.Images.Thumbnails extends Object implements BaseColumns
Modifier and Type | Field and Description |
---|---|
static String |
DATA
Path to the thumbnail file on disk.
|
static String |
DEFAULT_SORT_ORDER
The default sort order for this table
|
static Uri |
EXTERNAL_CONTENT_URI
The content:// style URI for the "primary" external storage
volume.
|
static int |
FULL_SCREEN_KIND |
static String |
HEIGHT
The height of the thumbnail
Type: INTEGER (long)
|
static String |
IMAGE_ID
The original image for the thumbnal
Type: INTEGER (ID from Images table)
|
static Uri |
INTERNAL_CONTENT_URI
The content:// style URI for the internal storage.
|
static String |
KIND
The kind of the thumbnail
Type: INTEGER (One of the values below)
|
static int |
MICRO_KIND |
static int |
MINI_KIND |
static String |
THUMB_DATA
The blob raw data of thumbnail
Type: DATA STREAM
|
static String |
WIDTH
The width of the thumbnal
Type: INTEGER (long)
|
_COUNT, _ID
Constructor and Description |
---|
Thumbnails() |
Modifier and Type | Method and Description |
---|---|
static void |
cancelThumbnailRequest(ContentResolver cr,
long origId)
This method cancels the thumbnail request so clients waiting for getThumbnail will be
interrupted and return immediately.
|
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.
|
static Uri |
getContentUri(String volumeName)
Get the content:// style URI for the image media table on the
given volume.
|
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.
|
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.
|
static Cursor |
query(ContentResolver cr,
Uri uri,
String[] projection) |
static Cursor |
queryMiniThumbnail(ContentResolver cr,
long origId,
int kind,
String[] projection) |
static Cursor |
queryMiniThumbnails(ContentResolver cr,
Uri uri,
int kind,
String[] projection) |
public static final Uri INTERNAL_CONTENT_URI
public static final Uri EXTERNAL_CONTENT_URI
public static final String DEFAULT_SORT_ORDER
public static final String DATA
Note that apps may not have filesystem permissions to directly
access this path. Instead of trying to open this path directly,
apps should use
ContentResolver.openFileDescriptor(Uri, String)
to gain
access.
Type: TEXT
public static final String IMAGE_ID
Type: INTEGER (ID from Images table)
public static final String KIND
Type: INTEGER (One of the values below)
public static final int MINI_KIND
public static final int FULL_SCREEN_KIND
public static final int MICRO_KIND
public static final String THUMB_DATA
Type: DATA STREAM
public static final String WIDTH
Type: INTEGER (long)
public static final String HEIGHT
Type: INTEGER (long)
public static final Cursor query(ContentResolver cr, Uri uri, String[] projection)
public static final Cursor queryMiniThumbnails(ContentResolver cr, Uri uri, int kind, String[] projection)
public static final Cursor queryMiniThumbnail(ContentResolver cr, long origId, int kind, String[] projection)
public static void cancelThumbnailRequest(ContentResolver cr, long origId)
cr
- ContentResolverorigId
- original image idpublic static Bitmap getThumbnail(ContentResolver cr, long origId, int kind, BitmapFactory.Options options)
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 Bitmappublic static void cancelThumbnailRequest(ContentResolver cr, long origId, long groupId)
cr
- ContentResolverorigId
- original image idgroupId
- the same groupId used in getThumbnail.public static Bitmap getThumbnail(ContentResolver cr, long origId, long groupId, int kind, BitmapFactory.Options options)
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 belongskind
- 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