How to properly save Downloaded Images to app specified folder

Try This:

File RootFile;
File root = Environment.getExternalStorageDirectory();
File dir = new File(root.getAbsolutePath() + "/MyAppFolder/");
String title=" <your title>";

if (!dir.exists()) {
     dir.mkdirs();
}
RootFile = new File(dir, title);

Leave a Comment