I am assigned a data recovery application task. I have searched a lot but I could not find a single solution to the problem. I just saw the comment of a developer on Stack Overflow but it does not provide me sufficient information. His comment was:
public ArrayList<File> listf(File xfile, ArrayList<File> files) {
// get all the files from a directory
File[] fList = xfile.listFiles();
for (File file : fList) {
if (file.isFile()) {
files.add(file);
} else if (file.isDirectory()) {
listf(file, files);
}
}
return files;
}
Is there any library or API that recovers the deleted images, videos, and apks. If not how can I do this task?