private static void searchFolderRecursive1(File folder) {
if (folder != null) {
if (folder.listFiles() != null) {
for (File file : folder.listFiles()) {
if (file.isFile()) {
if(file.getName().contains("file extension")){
Log.v("ooo", "path__="+file.getName());
}
} else {
searchFolderRecursive1(file);
}
}
}
}
}
No comments:
Post a Comment