I write (write, not download, to be precise it is the dump of a SQLite db of my App) a file on the Environment.DIRECTORY_DOWNLOADS directory.
File path = Env
you just created File instance like
File path = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS); File file = new File(path, "db.csv");
but the file "db.csv" is not created yet. use
file.createNewFile();
to create the file "db.csv" really...