This commit is contained in:
Joe Bowser 2012-05-11 16:08:40 -07:00
commit c56c73f250
2 changed files with 6 additions and 1 deletions

View File

@ -38,6 +38,11 @@ fi
# update the cordova-android framework for the desired target # update the cordova-android framework for the desired target
android update project --target $TARGET --path ./framework 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 # compile cordova.js and cordova.jar
cd ./framework && ant jar && cd ../ cd ./framework && ant jar && cd ../

View File

@ -222,7 +222,7 @@ public class FileUtils extends Plugin {
* @param filePath the path to check * @param filePath the path to check
*/ */
private void notifyDelete(String filePath) { 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, int result = this.ctx.getContentResolver().delete(MediaStore.Images.Media.EXTERNAL_CONTENT_URI,
MediaStore.Images.Media.DATA + " = ?", MediaStore.Images.Media.DATA + " = ?",
new String[] {newFilePath}); new String[] {newFilePath});