Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Not A Problem
-
2.3.0
-
None
-
None
Description
I'm trying to save the picture in a specific folder in sdcard
Everything is ok, however the picture does not appear in the gallery android
navigator.camera.getPicture(getImageURI, function (message) { alert('Image Capture Failed'); }, {
quality: 100,
destinationType: Camera.DestinationType.FILE_URL,
sourceType : Camera.PictureSourceType.CAMERA,
saveToPhotoAlbum: false
});
function getImageURI(imageUri) {
var gotFileEntry = function (fileSystem) {
fileSystem.getDirectory("Marmovix", {create: true, exclusive: false}, moveFile);
};
function moveFile(dirEntry) {
window.resolveLocalFileSystemURL(imageUri, function (fileEntry) { fileEntry.moveTo(dirEntry, "Marmovix.png", success, fsFail); }, fsFail);
};
window.resolveLocalFileSystemURL(cordova.file.externalRootDirectory, gotFileEntry, fsFail);