I know there are several posts about this extension, but I haven’t found the solution to the problem I’m facing.
Even using “ApplicationStorageDirectory” (ASD), I’m having trouble saving a selected image in imagepicker.
As my original app has a huge amount of blocks, I created a small app to test the creation and deletion of the ASD, as well as the recording and deletion of an image coming from the imagepicker.
But even in this simple app, when I create the ASD, it doesn’t shows up in the file manager, and when I try to create the desired img file, it doesn’t get created either.
Another thing…
When I click on the button to delete the ASD, and then on the button to check if it exists, the response always is positive.
I don’t know why in the test app the ASD is created correctly, but in the final app (the app with large amount of blocks), the ASD is not created.
In reality I realized that the extension tries to create the ASD in a different way, and from what I understand Android is not allowing it.
The correct location for creation would be in /storage/emulated/0/Android/Data/…, but it is trying to create in /storage/emulated/999/Android/Data/… (it is changing folder “0” by another called “999”).