i created a ical file with biweekly. I can write it to /Android/data/applicationfolder/files/Download with the following code:
File file = new File(getExternalFilesDir(Environment.DIRECTORY_DOWNLOADS), "Spiele.ics");
if (file.exists ())
file.delete ();
FileOutputStream outputStream = null;
try {
outputStream = new FileOutputStream(file, true);
Biweekly.write(ical).go(outputStream);
outputStream.flush();
outputStream.close();
} catch (IOException e) {
e.printStackTrace();
}
But how do i save it to the standard download folder? I tired some diffrent code with OutputStreamWriter but could not make it happen. Thanks.