An approach to saving new data to ID3 tags that I have tried, but which I don't see how to complete, is to use these interfaces(?) from the API documentation:
followed by
which compiles and "runs" without throwing errors - but the resulting javaobjects are not associated with any music file, therefore don't "know" what ID3 tags they refer to.
How do I link them up? I tried an approach involving
where the audioMP3File is set up properly using code I have shown in my other jaudiotagger posts, but the result was a log error:
Am I completely off track here - do I need to go back to school for a year or so to learn how to do this? Or am I missing something really simple … it's happened before
- Tag (http://www.jthink.net/jaudiotagger/javadoc/index.html)
- TagField (http://www.jthink.net/jaudiotagger/javadoc/index.html)
- TagTextField (http://www.jthink.net/jaudiotagger/javadoc/index.html).
B4X:
Dim joTag2 As JavaObject
Dim joTag2Field As JavaObject
Dim joTag2TextField As JavaObject
B4X:
joTag2.InitializeStatic("org.jaudiotagger.tag.Tag")
joTag2Field.InitializeStatic("org.jaudiotagger.tag.TagField")
joTag2TextField.InitializeStatic("org.jaudiotagger.tag.TagTextField")
How do I link them up? I tried an approach involving
B4X:
joTag2.InitializeNewInstance("org.jaudiotagger.tag.Tag", Array(audioMP3File))
joTag2Field.InitializeNewInstance("org.jaudiotagger.tag.TagField", Array(audioMP3File))
joTag2TextField.InitializeNewInstance("org.jaudiotagger.tag.TagTextField", Array(audioMP3File))
B4X:
java.lang.RuntimeException: Constructor not found.