From eb66eb02cb9b06a2bbc17269a8d98d9ac641a2d2 Mon Sep 17 00:00:00 2001 From: macdonst Date: Fri, 11 May 2012 16:43:00 -0400 Subject: [PATCH 1/2] Switch to using stripFileProtocol in FileUtils.notifyDelete --- framework/src/org/apache/cordova/FileUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/src/org/apache/cordova/FileUtils.java b/framework/src/org/apache/cordova/FileUtils.java index c8a45cb4..c7d02804 100755 --- a/framework/src/org/apache/cordova/FileUtils.java +++ b/framework/src/org/apache/cordova/FileUtils.java @@ -220,7 +220,7 @@ public class FileUtils extends Plugin { * @param filePath the path to check */ private void notifyDelete(String filePath) { - String newFilePath = filePath.substring(7); + String newFilePath = stripFileProtocol(filePath); int result = this.ctx.getContentResolver().delete(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, MediaStore.Images.Media.DATA + " = ?", new String[] {newFilePath}); From c6349668dd24d53bf893425543b5c4bdc0ebda84 Mon Sep 17 00:00:00 2001 From: Joe Bowser Date: Fri, 11 May 2012 16:07:43 -0700 Subject: [PATCH 2/2] Tweaked create so it fetches the commons-codec using curl --- bin/create | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bin/create b/bin/create index 84122a54..e7670441 100755 --- a/bin/create +++ b/bin/create @@ -38,6 +38,11 @@ fi # update the cordova-android framework for the desired target android update project --target $TARGET --path ./framework +# Use curl to get the jar (TODO: Support Apache Mirrors) +curl -OL http://mirror.symnds.com/software/Apache//commons/codec/binaries/commons-codec-1.6-bin.zip +unzip commons-codec-1.6-bin.zip +cp commons-codec-1.6/commons-codec-1.6.jar ./framework/libs + # compile cordova.js and cordova.jar cd ./framework && ant jar && cd ../