Get ContentResolver
ContentResolver contentresolver = getContentResolver();Get video content list from sdcard.
Cursor cursor = managedQuery(MediaStore.Video.Media.EXTERNAL_CONTENT_URI, null, null, null, null);move first a pointer of video list.
cursor.moveToFirst();Get thumbnail.
Bitmap bmp = MediaStore.Video.Thumbnails.getThumbnail(contentresolver, id, MediaStore.Video.Thumbnails.MICRO_KIND, null);
After I put Bitmap at Table view.
source code here.
0 件のコメント:
コメントを投稿