Reputation: 58
I'm trying to write a media player on my android phone.
There is a function that showing the song's image which embedded in the mp3 file.
Now I have the string of the mp3 file location, so how can I get the image, so I can give it to ImageView?
Upvotes: 0
Views: 702
Reputation: 16417
You should look into the MediaMetadataRetriever class to get all the data from the ID3 tag of the mp3 file.
And more specifically, look for the getEmbeddedPicture
method.
You'll need to use BitmapFactory.decodeStream
to get the actual image.
Upvotes: 2