public class MediaStoreHelper
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
protected static class |
MediaStoreHelper.ImageLoader
Runnable to load image asynchronously
|
protected static class |
MediaStoreHelper.LoaderDrawable
LoaderDrawable is a descendent of Drawable to load image asynchronusly and draw
We want to use BitmapDrawable but we can't because it has no public/protected method
to set Bitmap after construction.
|
static class |
MediaStoreHelper.MediaInfo |
| Modifier and Type | Field and Description |
|---|---|
static int |
MEDIA_ALL |
static int |
MEDIA_IMAGE |
protected static int |
MEDIA_TYPE_NUM |
static int |
MEDIA_VIDEO |
protected static int |
PROJ_INDEX_DATA |
protected static int |
PROJ_INDEX_DISPLAY_NAME |
protected static int |
PROJ_INDEX_HEIGHT |
protected static int |
PROJ_INDEX_ID |
protected static int |
PROJ_INDEX_MEDIA_TYPE |
protected static int |
PROJ_INDEX_MIME_TYPE |
protected static int |
PROJ_INDEX_TITLE |
protected static int |
PROJ_INDEX_WIDTH |
protected static java.lang.String[] |
PROJ_MEDIA |
protected static android.net.Uri |
QUERY_URI |
protected static java.lang.String |
SELECTION_MEDIA_ALL |
protected static java.lang.String |
SELECTION_MEDIA_IMAGE |
protected static java.lang.String |
SELECTION_MEDIA_VIDEO |
protected static java.lang.String[] |
SELECTIONS |
| Constructor and Description |
|---|
MediaStoreHelper() |
| Modifier and Type | Method and Description |
|---|---|
protected static int |
calcSampleSize(android.graphics.BitmapFactory.Options options,
int requestWidth,
int requestHeight)
calculate maximum sub-sampling size that the image size is greater or equal to requested size
|
protected static android.graphics.Bitmap |
getImage(android.content.ContentResolver cr,
long id,
int requestWidth,
int requestHeight) |
public static final int MEDIA_ALL
public static final int MEDIA_IMAGE
public static final int MEDIA_VIDEO
protected static final int MEDIA_TYPE_NUM
protected static final java.lang.String[] PROJ_MEDIA
protected static final java.lang.String SELECTION_MEDIA_ALL
protected static final java.lang.String SELECTION_MEDIA_IMAGE
protected static final java.lang.String SELECTION_MEDIA_VIDEO
protected static final java.lang.String[] SELECTIONS
protected static final int PROJ_INDEX_ID
protected static final int PROJ_INDEX_TITLE
protected static final int PROJ_INDEX_MEDIA_TYPE
protected static final int PROJ_INDEX_MIME_TYPE
protected static final int PROJ_INDEX_DATA
protected static final int PROJ_INDEX_DISPLAY_NAME
protected static final int PROJ_INDEX_WIDTH
protected static final int PROJ_INDEX_HEIGHT
protected static final android.net.Uri QUERY_URI
protected static final android.graphics.Bitmap getImage(android.content.ContentResolver cr,
long id,
int requestWidth,
int requestHeight)
throws java.io.IOException
java.io.IOExceptionprotected static final int calcSampleSize(android.graphics.BitmapFactory.Options options,
int requestWidth,
int requestHeight)
options - requestWidth - requestHeight -