Welcome!

Welcome to the Official BlackBerry Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Android™ Runtime Development

Reply
Trusted Contributor
bbdev12345
Posts: 117
Registered: ‎09-06-2011
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++) {
			imagecursor.moveToPosition(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?

Please use plain text.