Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Android™ Development

Trusted Contributor
Posts: 117
Registered: ‎09-06-2011
My Device: 9900
My Carrier: myself

Can get thumbnails for images but not videos

Hi all,


porting an android app over to pb, when i try to view thumbnails of videos using code which works fine with other android devices..


for (int i = 0; i < this.count; i++) {
			int id = imagecursor.getInt(image_column_index);
			int dataColumnIndex = imagecursor.getColumnIndex(MediaStore.Video.Media.DATA);
			thumbnails[i] = MediaStore.Video.Thumbnails.getThumbnail(
					getApplicationContext().getContentResolver(), id,
					MediaStore.Video.Thumbnails.MICRO_KIND, null);
			arrPath[i]= imagecursor.getString(dataColumnIndex);


I do not get a thumbnail with playbook, is there a workaround?