android - Phonegap Build: download image in one of the folders of your app -
android - Phonegap Build: download image in one of the folders of your app - i able download image if specify path straight file:///storage/sdcard0/ how can save image 1 of folders in app ? tried this approach set app path doesn't work me. this using far , works if want save , image sdcard: class="lang-js prettyprint-override"> var filename = "myimage.png"; var filetransfer = new filetransfer(); var uri = encodeuri("http://my.url.to.image/myimage.png"); var filepath = "file:///storage/sdcard0/uploads/myimage.png"; filetransfer.download( uri, filepath, function(entry) { alert("download complete: " + entry.fullpath); console.log("download complete: " + entry.fullpath); }, function(error) { alert("download error source/target/code:\n" + error.source +" \n||| "+error.target+" \n||| "+error.code); console.log("d