1

I am trying to find out if there is a way to set media metadata (mainly ID3 such as artist, album, song, ...) on an anudio file in Android.

I have noticed that it is possible to retrieve such information using MediaMetadataRetriever but cannot find out a way to set it.

Can you please help? Is it possible?

Aliostad
  • 80,612
  • 21
  • 160
  • 208

3 Answers3

1

You could use the DataStorage to get a File-Object from the MP3-File you want to edit and then use a ID3-Tag Library like Jaudiotagger to edit the ID3-Tags.

Community
  • 1
  • 1
Lukas Knuth
  • 25,449
  • 15
  • 83
  • 111
  • Well, I actually found the resource as well and was looking at the code. But thanks. Flagged it as answer. – Aliostad May 16 '11 at 13:08
  • Do you know perhaps about other audio files formats? I need to know about reading&modifying metadata of supported files formats that can be recorded. I've written about it here: http://stackoverflow.com/q/36473337/878126 – android developer Apr 07 '16 at 13:34
0

From the CLI, you can use id3ed. Just build it using Android's NDK, then you can use adb debug bridge to access the shell.

psihodelia
  • 29,566
  • 35
  • 108
  • 157
0

I think you have to use a third party library

http://jid3.blinkenlights.org/

http://www.jthink.net/jaudiotagger/

Rejinderi
  • 11,694
  • 2
  • 31
  • 40