Android Question How could I access to the download folder?

Espinosa4

Active Member
Licensed User
Longtime User
Hi everyone!

How could I access to the download folder in Android 11?
Can you help me please?
Any example?

In android I've not problems but in Android 11 I can do it.

Thank you very much indeed in advance!
 

agraham

Expert
Licensed User
Longtime User
Option 3: ExternalStorage
Just to clarify. Although the class looks like it was intended for SD Cards and USB sticks, and the introduction says it has nothing to do with internal storage in fact ExternalStorage does also work for internal storage.
Perhaps a rewording of the introduction is needed.
 
Upvote 0

Espinosa4

Active Member
Licensed User
Longtime User
It depends on what you want to do.

Option 1: requestLegacyExternalStorage - https://www.b4x.com/android/forum/threads/android-jar-targetsdkversion-minsdkversion.87610/#content
Option 2: ContentChooser
Option 3: ExternalStorage
Good morning Erel. I need to upload a file using my app or save a file into this folder. In fact, in Android 10, I use a folder created using makedir in the Root folder to do backups and it works but in Android 11 doesn't work.

Thanks guys for helping me.
Espinosa
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…