Page 1 of 1

Access to the download directory

Posted: July 12th, 2023, 2:00 pm
by AriSilva
Hi folks,
As I understood, using Android 11 there is no way to access files from external directories, but the ones in the SD card through the CSEntryExternal keyword.
Is there a way to access the download copmmon folder as in
File file = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS);
Best
Ari

Re: Access to the download directory

Posted: July 13th, 2023, 10:24 am
by Gregory Martin
Have you tried?
pathname(Downloads)

Re: Access to the download directory

Posted: July 26th, 2023, 2:42 pm
by AriSilva
Hi Greg,
Sorry to take so long to answer.
In fact I did not try it, I did not know it even existed that possibility.
Is it a double way access in the sense that I can GET and/or PUT some file there?
Best
Ari

Re: Access to the download directory

Posted: July 27th, 2023, 8:03 am
by Gregory Martin
You should be able to. It's one of the few directories that Android makes available to all applications.