Access to the download directory

Discussions about CSEntry
Post Reply
AriSilva
Posts: 595
Joined: July 22nd, 2016, 3:55 pm

Access to the download directory

Post 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
Best
Ari
Gregory Martin
Posts: 1796
Joined: December 5th, 2011, 11:27 pm
Location: Washington, DC

Re: Access to the download directory

Post by Gregory Martin »

Have you tried?
pathname(Downloads)
AriSilva
Posts: 595
Joined: July 22nd, 2016, 3:55 pm

Re: Access to the download directory

Post 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
Best
Ari
Gregory Martin
Posts: 1796
Joined: December 5th, 2011, 11:27 pm
Location: Washington, DC

Re: Access to the download directory

Post by Gregory Martin »

You should be able to. It's one of the few directories that Android makes available to all applications.
Post Reply