diff --git a/aFileChooser/src/com/ipaulpro/afilechooser/utils/FileUtils.java b/aFileChooser/src/com/ipaulpro/afilechooser/utils/FileUtils.java index 25c8008..32920c8 100644 --- a/aFileChooser/src/com/ipaulpro/afilechooser/utils/FileUtils.java +++ b/aFileChooser/src/com/ipaulpro/afilechooser/utils/FileUtils.java @@ -284,9 +284,10 @@ else if (isExternalStorageDocument(uri)) { if ("primary".equalsIgnoreCase(type)) { return Environment.getExternalStorageDirectory() + "/" + split[1]; + } + else{ + return System.getEnv("SECONDARY_STORAGE") + "/" + split[1]; } - - // TODO handle non-primary volumes } // DownloadsProvider else if (isDownloadsDocument(uri)) {