question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Selecting photos doesnt work on Android Q

See original GitHub issue

All 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:open
  • Created 4 years ago
  • Reactions:3
  • Comments:18 (3 by maintainers)

github_iconTop GitHub Comments

28reactions
davecoffincommented, Nov 1, 2019

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:

<application
  ...
    android:requestLegacyExternalStorage="true"
  ...
</application>

@DimitarTodorov is that what I was missing?

5reactions
fpaaskecommented, Apr 23, 2021

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found