开发者

retrieving image thumbnail

Given the IMAGE_ID in by the ContentProvider, how do i get the thumbnail path of it?

 Cursor c = this.managedQuery(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, null, selection, null, null);

            while ( c.moveToNext()){
                String title = c.getString(c.getColumnIndex(MediaStore.Images.ImageColumns.TITLE));
                String description = c.getString(c.getColumnIndex(MediaStore.Images.ImageColumns.DESCRIPTION));
                long imgId = c.getLong(c.getColu开发者_如何学CmnIndex(MediaStore.Images.ImageColumns._ID));
           ... }


Look on this link, there isn't any information about path to image in MediaStore.Images.Media. You can try to look to the all columns in Cursor, maybe there is some information:

String[] columns = c.getColumnNames();
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜