diff --git a/src/android/ContentFilesystem.java b/src/android/ContentFilesystem.java index f4df440d..b37eb355 100644 --- a/src/android/ContentFilesystem.java +++ b/src/android/ContentFilesystem.java @@ -45,7 +45,8 @@ public ContentFilesystem(Context context, CordovaResourceApi resourceApi, Cordov @Override public Uri toNativeUri(LocalFilesystemURL inputURL) { - String authorityAndPath = inputURL.uri.getEncodedPath().substring(this.name.length() + 2); + String encodedPath = inputURL.uri.getEncodedPath(); + String authorityAndPath = encodedPath.substring(encodedPath.indexOf(this.name) + 1 + this.name.length() + 2); if (authorityAndPath.length() < 2) { return null; }