Sal Valente
Lurker
I'm writing a desktop application in Java. One piece of its functionality involves copying mp3 files to an attached device. To copy these files, the application invokes the "gvfs-copy" shell command, which is ok for me because I only really care about my application running on Linux/Gnome.
1. It would be nice if it worked on other desktops and systems. Is there a more portable way to copy files over MTP from a Java app?
2. Say that my mp3 file has an associated image (the album artwork, basically). Say that this image is not encoded in the mp3 file itself (in the id3 fields). The image is in an external jpg file. Is there some convention for establishing the relationship between these files? Can I copy the jpg file to some MTP folder under some file name, such that the image will be displayed by Play Music and/or other media players when I play the file?
1. It would be nice if it worked on other desktops and systems. Is there a more portable way to copy files over MTP from a Java app?
2. Say that my mp3 file has an associated image (the album artwork, basically). Say that this image is not encoded in the mp3 file itself (in the id3 fields). The image is in an external jpg file. Is there some convention for establishing the relationship between these files? Can I copy the jpg file to some MTP folder under some file name, such that the image will be displayed by Play Music and/or other media players when I play the file?