Lamelynx / GodotGetImagePlugin-Android

Godot plugin to select image from gallery or camera on Android device.
MIT License
71 stars 4 forks source link

android 12 not work #17

Closed zedrun00 closed 1 month ago

zedrun00 commented 3 months ago

android 12 not request READ_MEDIA_IMAGES. image

but android 13 is normal. image

Lamelynx commented 3 months ago

In android 13 the permission is changed. READ_MEDIA_IMGES is not used below android 13. See the source GodotGetImage.tk line 181

Please add some more context on the issue, what happens when you run your code etc.

zedrun00 commented 3 months ago

android_get_image.zip video.zip

Lamelynx commented 3 months ago

I have not tested your code but in the function _on_button_pressed() try to remove the line image_plugin.resendPermission().

Have you tried the demo project? It does work with Android 12.

zedrun00 commented 3 months ago

I have not tested your code but in the function _on_button_pressed() try to remove the line image_plugin.resendPermission().

my old code not has line image_plugin.resendPermission(), but also not work .

Have you tried the demo project? It does work with Android 12.

what project you mean? this project? or has official project?

Lamelynx commented 3 months ago

I mean this project: plugin/demo. The demo project work on my android 12 phone.