Download folder on Android

Wondering if anyone does a decent amount of android work in any tool and whether what I’m trying to do is going to run into issues at some later date

Basically I’m using a URI to access that dir to write a file there

Is this Kosher ? Stable ? Supported ?
Or am I going to regret this later on ?

It depends on the target version, Also if it is for the store or for internal use.

It is kosher (not pork meat :slight_smile: ) and it is allowed but only inside of the restrictions of Android File System. The API Release if the point to look for. Maybe this link helps you a bit.

It is always a mess while they change many stuffs between the API releases. Often not so clear to realize but… Have fun with Android building. One question: are you building with Kotlin or another solution?

I eventually found the right answer

Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS)