Intent.getData() Problem

Hi, with my app I would like to take the images from the gallery and crop them to insert them within the app itself.
In the Companion it works, but when I go to use the actual app it gives me this error.
How can I solve?

Immagine

The location of the files changes depending on whether you use the companion or the apk.

Try to put in “ImagenPath” = “Selection”

That because you have used //, and that is only used to get images from assets, so remove the join block and simply insert selection parameter in imagepath

Use this

file:///sdcard/WhatsApp/Media/WhatsApp Images/imgname.jpg

You can also directly use
/sdcard/WhatsApp/Media/WhatsApp Images/imgname.jpg

D.V. :heart:

ok, i tried to put only “selection” in “image path”.
The error has disappeared, but the image is not taken anyway, and this alert appears in the photo.
photo5940418036907488625
P.S: I’m Italian, it says “image editing is not supported.”

I think it is the extension fault

Do you know any free extension that can crop images so I can replace it with the one I use?