Get the path of → ASD (app-specific dir) & → private data dir (internal storage)

Here are my tests copying images to the private data dir (→ internal storage), tested on:

  • Android 11, APK, targetSdkVersion=29
  • Android 11, APK, targetSdkVersion=30

I first downloaded 7 images from my webspace in the ASD and copied them from there to the privateDir without permissions. I also copied one image from the assets to the privateDir:
This one:
grafik

The other (downloaded) images are pics of a car.
(total size of images = 4MB, but 30MB works too)

Of course, I could not use the Image component without READ permission. So I used an extension for this. But I’m pretty sure that the permission request will be removed when Kodular targets Android 11, Aug. 2021).

The maximum AIA size of 30 MB is not enough for my apps. So I have to download the files on the first run, download them to the ASD, copy them to the privateDir and then remove them from the ASD.

7 Likes