You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Android 9 and above, loading images in Downloads folder causes IllegalArgumentException and fails.
In Utils.java, getDataColumn method below fails.
// DownloadsProvider
else if (isDownloadsDocument(uri)) {
final String id = DocumentsContract.getDocumentId(uri);
// String "id" may not represent a valid Long type data, it may equals to
// something like "raw:/storage/emulated/0/Download/some_file" instead.
// Doing a check before passing the "id" to Long.valueOf(String) would be much safer.
if (RawDocumentsHelper.isRawDocId(id)) {
filePath = RawDocumentsHelper.getAbsoluteFilePath(id);
} else {
final Uri contentUri = ContentUris.withAppendedId(Uri.parse("content://downloads/public_downloads"), Long.valueOf(id));
filePath = getDataColumn(context, contentUri, null, null);
}
}
I received the following message: java.lang.IllegalArgumentException: Unknown URI: content://downloads/public_downloads/5
Any solution / guidance would be appreciated.
The text was updated successfully, but these errors were encountered:
hidekisdev
changed the title
Loading images in Downloads folder causes NumberFormatException since Android 9
Loading images in Downloads folder causes NumberFormatException on Android 9 and above
Mar 10, 2021
hidekisdev
changed the title
Loading images in Downloads folder causes NumberFormatException on Android 9 and above
Loading images from Downloads folder causes NumberFormatException on Android 9 and above and is not working
Mar 10, 2021
hidekisdev
changed the title
Loading images from Downloads folder causes NumberFormatException on Android 9 and above and is not working
Loading images from Downloads folder causes IllegalArgumentException on Android 9 and above and is not working
Mar 10, 2021
Android 9 and above, loading images in Downloads folder causes IllegalArgumentException and fails.
In Utils.java, getDataColumn method below fails.
I received the following message:
java.lang.IllegalArgumentException: Unknown URI: content://downloads/public_downloads/5
Any solution / guidance would be appreciated.
The text was updated successfully, but these errors were encountered: