Вот мой код;
private void export() {
File filePath = Environment.getExternalStorageDirectory();
File dir = new File(filePath.getAbsolutePath() + "/Calendario EP/");
dir.mkdir();
File exportFile = new File(dir, EXPORT_FILE_NAME);
try {
FileOutputStream outputstream = new FileOutputStream(exportFile);
} catch (FileNotFoundException e) {
e.printStackTrace();
}
Toast.makeText(getApplicationContext(), "Salvato", Toast.LENGTH_SHORT).show();
}
Я не могу найти ошибку.
Ошибка:
java.io.FileNotFoundException: /storage/emulated/0/Calendario EP/export_file.txt: open failed: ENOENT (No such file or directory)