Java Code Examples for android.provider.MediaStore.Images.Thumbnails#DATA

The following examples show how to use android.provider.MediaStore.Images.Thumbnails#DATA . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: AlbumHelper.java    From sctalk with Apache License 2.0 6 votes vote down vote up
/**
 * 得到缩略图
 */
private void getThumbnail() {
    String[] projection = {
            Thumbnails._ID, Thumbnails.IMAGE_ID,
            Thumbnails.DATA
    };
    Cursor cursor = null;
    try {
        cursor = contentResolver.query(Thumbnails.EXTERNAL_CONTENT_URI,
                projection, null, null, null);
        getThumbnailColumnData(cursor);
    } catch (Exception e) {
        logger.e(e.getMessage());
    } finally {
        if (null != cursor) {
            cursor.close();
        }
    }
}
 
Example 2
Source File: AlbumHelper.java    From quickmark with MIT License 5 votes vote down vote up
/**
 * �õ�����ͼ
 */
private void getThumbnail() {
	String[] projection = { Thumbnails._ID, Thumbnails.IMAGE_ID,
			Thumbnails.DATA };
	Cursor cursor = cr.query(Thumbnails.EXTERNAL_CONTENT_URI, projection,
			null, null, null);
	getThumbnailColumnData(cursor);
}
 
Example 3
Source File: AlbumHelper.java    From school_shop with MIT License 5 votes vote down vote up
private void getThumbnail() {
	String[] projection = { Thumbnails._ID, Thumbnails.IMAGE_ID,
			Thumbnails.DATA };
	Cursor cursor = cr.query(Thumbnails.EXTERNAL_CONTENT_URI, projection,
			null, null, null);
	getThumbnailColumnData(cursor);
}
 
Example 4
Source File: AlbumHelper.java    From UltimateAndroid with Apache License 2.0 5 votes vote down vote up
/**
 * 得到缩略图
 */
private void getThumbnail() {
	String[] projection = { Thumbnails._ID, Thumbnails.IMAGE_ID,
			Thumbnails.DATA };
	Cursor cursor = cr.query(Thumbnails.EXTERNAL_CONTENT_URI, projection,
			null, null, null);
	getThumbnailColumnData(cursor);
}
 
Example 5
Source File: ImagePickerHelper.java    From SimplifyReader with Apache License 2.0 4 votes vote down vote up
private void getThumbnail() {
	String[] projection = { Thumbnails._ID, Thumbnails.IMAGE_ID, Thumbnails.DATA };
	Cursor cursor = contentResolver.query(Thumbnails.EXTERNAL_CONTENT_URI, projection, null, null, null);
	getThumbnailColumnData(cursor);
}