1
Can anyone give me an idea of how to put together a list, as items that are within separate pasture? Example:
pasta1: archivos1 and archivos2 pasta2: archivos3 and archivos4
the list would be: archivist 1 archivist 2 archivist 3 archivists 4
The list I have is as follows:
File home = new File(MEDIA_PATH);
if (home.listFiles(new FileExtensionFilter()).length > 0) {
for (File file : home.listFiles(new FileExtensionFilter())) {
HashMap<String, String> song = new HashMap<String, String>();
song.put("songTitle", file.getName().substring(0, (file.getName().length() - 4)));
song.put("songPath", file.getPath());
// Adding each song to SongList
songsList.add(song);
}
}
// return songs list array
return songsList;
}
but this list only reads from a folder, emphasizing that I need the Song.put function, which I use...
Can you list the folders of a given directory? If you know, just list and add everything in the same list.
– Wakim
yes I have the list of the sdcard/folder directory, what I need is for me to be able to add in a single list, files inside sdcard/folder/paste1,sdcard/folder/paste2,sdcard/folder/paste3, and so on...
– Diogo Odelli