|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectandroid.provider.MediaStore.Images.Media
public static final class MediaStore.Images.Media
| Field Summary | |
|---|---|
static String |
CONTENT_TYPE
The MIME type of of this directory of images. |
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 Uri |
INTERNAL_CONTENT_URI
The content:// style URI for the internal storage. |
| Fields inherited from interface android.provider.MediaStore.Images.ImageColumns |
|---|
BUCKET_DISPLAY_NAME, BUCKET_ID, DATE_TAKEN, DESCRIPTION, IS_PRIVATE, LATITUDE, LONGITUDE, MINI_THUMB_MAGIC, ORIENTATION, PICASA_ID |
| Fields inherited from interface android.provider.MediaStore.MediaColumns |
|---|
DATA, DATE_ADDED, DATE_MODIFIED, DISPLAY_NAME, MIME_TYPE, SIZE, TITLE |
| Fields inherited from interface android.provider.BaseColumns |
|---|
_COUNT, _ID |
| Constructor Summary | |
|---|---|
MediaStore.Images.Media()
|
|
| Method Summary | |
|---|---|
static Bitmap |
getBitmap(ContentResolver cr,
Uri url)
Retrieves an image for the given url as a Bitmap. |
static Uri |
getContentUri(String volumeName)
Get the content:// style URI for the image media table on the given volume. |
static String |
insertImage(ContentResolver cr,
Bitmap source,
String title,
String description)
Insert an image and create a thumbnail for it. |
static String |
insertImage(ContentResolver cr,
String imagePath,
String name,
String description)
Insert an image and create a thumbnail for it. |
static Cursor |
query(ContentResolver cr,
Uri uri,
String[] projection)
|
static Cursor |
query(ContentResolver cr,
Uri uri,
String[] projection,
String where,
String orderBy)
|
static Cursor |
query(ContentResolver cr,
Uri uri,
String[] projection,
String selection,
String[] selectionArgs,
String orderBy)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final Uri INTERNAL_CONTENT_URI
public static final Uri EXTERNAL_CONTENT_URI
public static final String CONTENT_TYPE
public static final String DEFAULT_SORT_ORDER
| Constructor Detail |
|---|
public MediaStore.Images.Media()
| Method Detail |
|---|
public static final Cursor query(ContentResolver cr,
Uri uri,
String[] projection)
public static final Cursor query(ContentResolver cr,
Uri uri,
String[] projection,
String where,
String orderBy)
public static final Cursor query(ContentResolver cr,
Uri uri,
String[] projection,
String selection,
String[] selectionArgs,
String orderBy)
public static final Bitmap getBitmap(ContentResolver cr,
Uri url)
throws FileNotFoundException,
IOException
Bitmap.
cr - The content resolver to useurl - The url of the image
FileNotFoundException
IOException
public static final String insertImage(ContentResolver cr,
String imagePath,
String name,
String description)
throws FileNotFoundException
cr - The content resolver to useimagePath - The path to the image to insertname - The name of the imagedescription - The description of the image
FileNotFoundException
public static final String insertImage(ContentResolver cr,
Bitmap source,
String title,
String description)
cr - The content resolver to usesource - The stream to use for the imagetitle - The name of the imagedescription - The description of the image
null if the image failed to be stored
for any reason.public static Uri getContentUri(String volumeName)
volumeName - the name of the volume to get the URI for
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||