I have such code…
File fileDir = new File("/mnt/sdcard/dd");
if(!fileDir.exists() || !fileDir.isDirectory()){
return;
}
String[] files = fileDir.list();
So, I have an array of files’ names…
But I want to GET an array of "path to each file"+fileDir.list()
For example
I have – "/09.jpg"
I want – "/mnt/sdcard/dd/09.jpg"
How can I do it? Thanks
try following code,
Now the array files contains the updated value with path.