How can i get the time of creation of the files that are in a folder and then put in them in a string array?
This is the code use for read the files of the folder and then put them in a string array:final
File carpeta = new File("/storage/emulated/0/Android/data/cc.openframeworks.androidMultiOFActivitiesExample/files/xml");
listarFicherosPorCarpeta(carpeta);
List<String> list = new ArrayList<String>();
public void listarFicherosPorCarpeta(final File carpeta) {
for (final File ficheroEntrada: carpeta.listFiles()) {
if (ficheroEntrada.isDirectory()) {
listarFicherosPorCarpeta(ficheroEntrada);
} else {
System.out.println(ficheroEntrada.getName());
list.add(ficheroEntrada.getName());
}
}