Selecting photos doesnt work on Android Q
See original GitHub issueAll latest…
Selecting a photo returns this error:
Asset '/storage/emulated/0/DCIM/Camera/IMG_20190920_122446.jpg' cannot be found.
And doing something like this:
var img = imageSourceModule.fromFile(selected.android.toString());
results in this error:
Error: java.io.FileNotFoundException: /storage/emulated/0/DCIM/Camera/IMG_20190920_122446.jpg: open failed: EACCES (Permission denied)
Does this have something to do with the new Scoped Storage Framework?
Issue Analytics
- State:
- Created 4 years ago
- Reactions:3
- Comments:18 (3 by maintainers)
Top Results From Across the Web
[Update: Fixed] Selecting images in Android 10's app switcher ...
With the final release of Android 10, image selection and sharing from the Overview screen is working again. You can get back to...
Read more >Android Q breaks image selection tool in the Overview menu
Android Q lets you select text and text in images, but not the image itself. Considering the text selection feature still works, my...
Read more >Fix an installed Android app that isn't working - Google Support
Step 1: Restart & update · Open your phone's Settings app. · Near the bottom, tap System and then Advanced and then System...
Read more >Android Q make photos saved in getExternalFilesDir() visible ...
I was trying to retrieve photo file from gallery and save it to getExternalStorageDir() folder in onActivityResult, but got EACCESS ...
Read more >Access media files from shared storage | Android Developers
If scoped storage is enabled, the collection shows only the photos, videos, and audio files that your app has created. Most developers won't...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

For anybody that finds this, @dicksmith pointed this out:
Fun fact, if you want nativescript-imagepicker to work on Android 10, gotta target it (API 29) and add this to the application declaration in the manifest:
@DimitarTodorov is that what I was missing?
It’s no longer allowed to use
android:requestLegacyExternalStorage="true"if you’re targeting Android 11. From May 5th, I think, we’ll no longer be allowed to submit apps with this flag.