Here is an extension to download any file (jpg, png, txt, apk, zip, mp3, …) to the ASD (app-specific directory) without WRITE_EXTERNAL_STORAGE
permission.
Version 1 (Dec 13, 2020):
de.bodymindpower.DownloadToASD.aix (9.1 KB)
At the latest when Kodular targets API 30 (Android 11, Aug 2021), the ASD will be of outstanding importance. With this extension you can download files into this directory or subdirectories in it. With API 30 (→ targetSdkVersion=30
), Google no longer allows (unrestricted) access to external storage - outside the ASD (→ Scoped Storage). See also here: Some basics on Android storage system
Kodular must then also use the AndroidX
libs (like AI2 is already does). As soon as this has happened, this extension can no longer be used, but the → AI2 version of this extension can / must be used that already uses the AndroidX
libs (→ see in the AI2 forum).
So it will soon be necessary to adjust to this and make appropriate changes and adjustments in the projects in good time.