Some users who use my application on Android 11 devices are experiencing the problem of not being able to read cropped images with my app within it.
I learned that on Android 11 the cropped images are saved inside the ASD, but when I try to read them from the ASD, the app doesn’t load them.
How can I solve? I am attaching the blocks I am using for this process explaining how they work gradually:
With these first blocks I activate the Pick Image, leading the user to select the image he wants to insert in the app from the gallery of his device.
These blocks work correctly.
With these second blocks active, after choosing the image to insert and crop, the Dialog that allows the user to crop the chosen image in the size he prefers (always a square), then by pressing a button, the image is cropped.
These blocks also work correctly.
With this last block I take the image cropped from the previous blocks (saved inside the ASD of my app) and insert it inside the components.
And here is the problem: the image is not read if it is inside the ASD.
I tried to copy said cropped image to another location and if it is inside
/storage/emulated/0
it is read, but on Android 11 such a thing cannot be done (in fact my users complain that cannot see the cropped image in the app even with this method).Is there a way to read then the image files created inside the ASD?
The path I am using and involving my ASD is the following:
file:///storage/emulated/0/Android/data/io.kodular.andreapetricola.LoRCardCreator/files/LoRCardCreator/croppedimg.jpg (I did not preformat it because it was too long and the post was cut at the end)