Hello, I have a problem with image picker component
when picking an image into the app, app crashes
and the problem is the app working with android 11 and not working with android 9 or earlier
how to fix that?
thank you
my blocks
1 Like
ImagePicker will need read permission (in pre Android 10/11).
Set this first, ||before|| you try to get an image with the image picker
Look at your blocks
How is this supposed to work ?
- Screen Initialise
- Ask for Read permission (only)
- Give read permission when requested
- Open the image picker
- After picking:
- Set image picture
- Store the image file path to tinyDB
like this?
Did you test it ? Does it work ?
yes, still crashing
Which version of Android ? 9/8.1/8/7 ?
i tested in android 8.1 and crashed
OK, let me try
Set Filescope in Screen1 Propeties to Legacy, then it should work (this is for <Android 10 only)
1 Like
thank you so much for your solution, that is works
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.