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?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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
getEmbeddedPicturemethod.You’ll need to use
BitmapFactory.decodeStreamto get the actual image.