public static class MediaStore.Video.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 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 |
VIDEO_ID
The original image for the thumbnal
Type: INTEGER (ID from Video table)
|
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.
|
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 VIDEO_ID
Type: INTEGER (ID from Video 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 WIDTH
Type: INTEGER (long)
public static final String HEIGHT
Type: INTEGER (long)
public static void cancelThumbnailRequest(ContentResolver cr, long origId)
cr
- ContentResolverorigId
- original video 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 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_KINDoptions
- this is only used for MINI_KIND when decoding the Bitmappublic static void cancelThumbnailRequest(ContentResolver cr, long origId, long groupId)
cr
- ContentResolverorigId
- original video idgroupId
- the same groupId used in getThumbnail.