Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does MediaStore.Images.Media.MINI_THUMB_MAGIC do?

I was just curious about what the MediaStore.Images.Media.MINI_THUMB_MAGIC column contains. Does it have anything to do with the image's thumbnail? Thank you.

like image 329
Tanuj Nayak Avatar asked Jan 15 '23 15:01

Tanuj Nayak


1 Answers

See MediaStore.Images.ImageColumns from the Android developers ref. for the doc -- which says it returns "the mini thumb id".

Also see Displaying Thumbnail Photos on Map for how to use this ID:

long thumbId = cursor.getLong(cursor.getColumnIndex(MediaStore.Images.ImageColumns.MINI_THUMB_MAGIC));
String[] args = new String[]{String.valueOf(thumbId)};
Cursor ct = managedQuery(MediaStore.Images.Thumbnails.EXTERNAL_CONTENT_URI, null, MediaStore.Images.Thumbnails._ID + "= ?", args, null);
like image 155
Joseph Earl Avatar answered Jan 21 '23 18:01

Joseph Earl