diff --git a/src/android/io/github/pwlin/cordova/plugins/fileopener2/FileOpener2.java b/src/android/io/github/pwlin/cordova/plugins/fileopener2/FileOpener2.java index b330b4f..66d3f09 100644 --- a/src/android/io/github/pwlin/cordova/plugins/fileopener2/FileOpener2.java +++ b/src/android/io/github/pwlin/cordova/plugins/fileopener2/FileOpener2.java @@ -168,6 +168,8 @@ public class FileOpener2 extends CordovaPlugin { private String stripFileProtocol(String uriString) { if (uriString.startsWith("file://")) { uriString = uriString.substring(7); + } else if (uriString.startsWith("content://")) { + uriString = uriString.substring(10); } return uriString; }