diff --git a/aFileChooser/src/com/ipaulpro/afilechooser/utils/FileUtils.java b/aFileChooser/src/com/ipaulpro/afilechooser/utils/FileUtils.java index 25c8008..a8f0915 100644 --- a/aFileChooser/src/com/ipaulpro/afilechooser/utils/FileUtils.java +++ b/aFileChooser/src/com/ipaulpro/afilechooser/utils/FileUtils.java @@ -290,7 +290,8 @@ else if (isExternalStorageDocument(uri)) { } // DownloadsProvider else if (isDownloadsDocument(uri)) { - + if (uri.toString().startsWith("raw:")) + filePath= uri.toString().replaceFirst("raw:", ""); final String id = DocumentsContract.getDocumentId(uri); final Uri contentUri = ContentUris.withAppendedId( Uri.parse("content://downloads/public_downloads"), Long.valueOf(id));