Problème avec la galerie lors de l'utilisation du bouton "image-picker"

Bonjour à tous,

Je rencontre un soucis avec la galerie.

Lorsque je click sur le bouton image-picker, la galerie s'ouvre bien et je peux choisir une image de ma galerie mais lorsque je valide l'image choisie mon application se ferme aussitôt au lieux d'envoyer mon image vers la sélection et insérer mon image dans le cadre choisi.

Est-ce que le problème peux provenir de mon téléphone ?

Auriez vous une idée pour m'aider ?

Merci d'avance pour votre aide.

It would really help if you provided a screenshot of your relevant blocks, so we can see what you are trying to do, and where the problem may be.

To get an image of your blocks, right click in the Blocks Editor and select "Download Blocks as Image". You might want to use an image editor to crop etc. if required. Then post it here in the community.

Also which device and Android version are you using for your tests?

Taifun


Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by icon24 Taifun.

OK, voilà le bloc qui semble poser problème :

Je fait mes test sur un honor 7 avec Android 9

EDIT: BtnGallery is an image picker...
try Do it to debug your blocks

btw. it would help others who do not speak French, if you could switch the language to English before taking a screenshot next time...

use Do it to debug your blocks, see also tip 4 here App Inventor: How to Learn | Pura Vida Apps
see also Live Development, Testing, and Debugging Tools
Taifun


Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by icon24 Taifun.

1 Like

Je viens d'avoir le même problème.je re cherche sur le web et je tombe sur l'explicaion de Taifun qui me parait "farfelue". je passe en anglais rien y fait . toujours le problème. Pourquoi ? j'ai un message qui me dit que MIT AI2 va se fermé. OK ! Cela me met la puce à l'oreille. tout simplement , il faut autorisé MIT AI2 a avoir accès aux photos dans la configuration de l'application.

See here: