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.

Files downloaded with Chrome cannot be used in Android Pie

See original GitHub issue

Which platform(s) does your issue occur on?

  • Android version 9
  • Pixel 2

Please, tell us how to recreate the issue in as much detail as possible.

  • Download a file using Chrome.
  • Open Image Picker demo.
  • Go to Downloads, select file.
  • App crashes with the following exception:
JS: Error: java.lang.IllegalArgumentException: Unknown URI: content://downloads/public_downloads/24
JS:     android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:165)
JS:     android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:135)
JS:     android.content.ContentProviderProxy.query(ContentProviderNative.java:418)
JS:     android.content.ContentResolver.query(ContentResolver.java:802)
JS:     android.content.ContentResolver.query(ContentResolver.java:752)
JS:     android.content.ContentResolver.query(ContentResolver.java:710)
JS:     com.tns.Runtime.callJSMethodNative(Native Method)
JS:     com.tns.Runtime.dispatchCallJSMethodNative(Runtime.java:1116)
JS:     com.tns.Runtime.callJSMethodImpl(Runtime.java:996)
JS:     com.tns.Runtime.callJSMethod(Runtime.java:983)
JS:     com.tns.Runtime.callJSMethod(Runtime.java:967)
JS:     com.tns.Runtime.callJSMethod(Runtime.java:959)
JS:     com.tns.NativeScriptActivity.onActivityResult(NativeScriptActivity.java:66)JS:     android.app.Activity.dispatchActivityResult(Activity.java:7454)
JS:    ...

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:4
  • Comments:10 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
stevenspielcommented, Dec 7, 2018

I’m also having this issue. What workaround would you suggest for now?

0reactions
zbranzovcommented, Aug 1, 2019

The fix is published in nativescript-imagepicker@6.3.0

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fix file download errors - Google Chrome Help
This error means that there's not enough space on your computer to download the file. To fix the error: Delete some files from...
Read more >
Top 9 Ways to Fix Google Chrome Not Downloading Files on ...
Top 9 Ways to Fix Google Chrome Not Downloading Files on Android · 1. In Google Chrome, tap the kebab menu (three-dot icon)...
Read more >
Access media files from shared storage | Android Developers
Downloaded files, which are stored in the Download/ directory. ... Most developers won't need to use MediaStore.Files to view media files from other...
Read more >
Troubleshoot known issues with Android Emulator
This page lists known issues, workarounds, and troubleshooting tips for the Android Emulator. If you encounter an issue not listed here or ...
Read more >
Access documents and other files from shared storage
The Download directory. Furthermore, on Android 11 (API level 30) and higher, you cannot use the ACTION_OPEN_DOCUMENT_TREE intent action to request that the ......
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