I have a working app that takes picture but I want to copy or move the picture from the cache folder to an other folder.I can't do it work, it returns me the error [object Object].
Regards
function copiePhoto() {
try {
var fail = function (err) {
alert(err);
};
window.resolveLocalFileSystemURI("file:///storage/emulated/0/Android/data/com.coolappz.capigo/cache/1427968060754.jpg", function (file) {
window.resolveLocalFileSystemURI("file:///test", function (destination) {
file.moveTo(destination, "test.jpg");
}, fail);
}, fail);
} catch (err) {
alert("copie : " + err);
}
}
Aucun commentaire:
Enregistrer un commentaire