Skip to content Skip to sidebar Skip to footer

How To Get Thumbnails Of Audio Files By Using Mediastore

I am now working on a simple music player and i need to get the thumbnail art of all audio files. String selection = MediaStore.Audio.Media.IS_MUSIC + ' != 0'; String[] projec

Solution 1:

You might want to look at this answer I gave on a similar issue. You will need to give the Uri of the song you to get the cover art on.

Solution 2:

According to the documentation, it should be:

Bitmapimage= ThumbnailUtils.createAudioThumbnail("your file name", MediaStore.Images.Thumbnails.MICRO_KIND);

This might work for you. (Though it crashes with a NoSuchMethodError in Marshmellow).

Post a Comment for "How To Get Thumbnails Of Audio Files By Using Mediastore"