Hi all,
Im building an app that needs to read the folder structure and when it discovers files in the last folder, read those file names and the id3tags of each file. The files are .mp3.
The folder structure contains Artist Name/ Album Name / then .mp3 songs.
I've copied this structure from my PC by attaching the device to it and copying all folders and .mp3 files.
An artist folder can contain more than one folder (at least one), as albums. An album then contains the songs (.mp3 file) of the album.
All the folders and files on the device have been copied into a subfolder (named: MyMusic) under the Music folder.
Expected behavior for the app:
1. The app would allow the user to select the MyMusic folder.
2. The code would then read each folder and subflowers and then read the .mp3 files. As the code is reading the name of the folder, it has to keep track of that (maybe in a List) and after reaching the last folder with the .mp3 files, the code would then write all that folders and files info to SQlite tables on the device.
Tables: artist, albums, and songs.
3. The main layout will display the artist names in a listview.
4. When selecting an artist, the artists albums will display horizontally in a customlistview to the right of the artists.
5. When an album is selected, the albums songs will list into a customlistview below the albums.
6. The user can then play a selected song or another option to play the whole album.
I've experimented with the ExternalStorage library and gotten stuck. I have gone thru 5 versions of this and so can't really give you any code that makes sense.
I hope I have explained everything well enough for you to help out with this.
Regards,
Mark Stuart
ps: I started another post last week, mentioning that I'm trying ChatGPT to help write the code, but it's failing miserably.
Im building an app that needs to read the folder structure and when it discovers files in the last folder, read those file names and the id3tags of each file. The files are .mp3.
The folder structure contains Artist Name/ Album Name / then .mp3 songs.
I've copied this structure from my PC by attaching the device to it and copying all folders and .mp3 files.
An artist folder can contain more than one folder (at least one), as albums. An album then contains the songs (.mp3 file) of the album.
All the folders and files on the device have been copied into a subfolder (named: MyMusic) under the Music folder.
Expected behavior for the app:
1. The app would allow the user to select the MyMusic folder.
2. The code would then read each folder and subflowers and then read the .mp3 files. As the code is reading the name of the folder, it has to keep track of that (maybe in a List) and after reaching the last folder with the .mp3 files, the code would then write all that folders and files info to SQlite tables on the device.
Tables: artist, albums, and songs.
3. The main layout will display the artist names in a listview.
4. When selecting an artist, the artists albums will display horizontally in a customlistview to the right of the artists.
5. When an album is selected, the albums songs will list into a customlistview below the albums.
6. The user can then play a selected song or another option to play the whole album.
I've experimented with the ExternalStorage library and gotten stuck. I have gone thru 5 versions of this and so can't really give you any code that makes sense.
I hope I have explained everything well enough for you to help out with this.
Regards,
Mark Stuart
ps: I started another post last week, mentioning that I'm trying ChatGPT to help write the code, but it's failing miserably.
Last edited: