Hello All,
I trying to list the files/directories in File System. But i am not able
to list them. I could list files and directories under "/", but i am not
able list the sub directories "/data/" etc.
My code is...
private void fileListing(final File aDirectory){
if (aDirectory.isDirectory()){
File[] files = aDirectory.listFiles()); // For non-root
directories, files object array is always null
if ( files != null) {
for (File file : files){
//file.getPath()
}
}
}
}
.............
fileListing(new File("/")); // Here i am able list the files.
fileListing(new File("/system/")); // Here i am not able list files
Help me in resolving this.
Regards,
VIn
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en