I'm trying to get mp3 tags from some music files

   MediaMetadataRetriever mmr = new MediaMetadataRetriever();

   File filenm = new File(path, availableFiles[0]);
   mmr.setDataSource(showFileActivity.this,Uri.fromFile(filenm));
   String column = 
mmr.extractMetadata(MediaMetadataRetriever.METADATA_KEY_xyz):

I can get DURATION and BITRATE tags, so I know I'm setting the data source 
on the correct file, but everything else comes back null.
The other tags, such as TITLE, are present, as I can pull the file from the 
device and verify they are there.

Is there a better way to get mp3 tags? Am I doing it wrong?




 

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to