You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Joe Bowser (JIRA)" <ji...@apache.org> on 2016/10/14 22:13:20 UTC

[jira] [Commented] (CB-11988) I used the moveTo() and can not locate the saved image

    [ https://issues.apache.org/jira/browse/CB-11988?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15576674#comment-15576674 ] 

Joe Bowser commented on CB-11988:
---------------------------------

You did notice that you set saveToPhotoAlbum to false, right? If you do that, it won't save anything to the gallery.

> I used the moveTo() and can not locate the saved image
> ------------------------------------------------------
>
>                 Key: CB-11988
>                 URL: https://issues.apache.org/jira/browse/CB-11988
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 2.3.0
>            Reporter: Lucas Costa
>            Priority: Minor
>
> 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
> bq.  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) {
>     bq. fileSystem.getDirectory("Marmovix", {create: true, exclusive: false}, moveFile);
> };
> function moveFile(dirEntry) {
>     bq. window.resolveLocalFileSystemURL(imageUri, function (fileEntry) {
>        fileEntry.moveTo(dirEntry, "Marmovix.png", success, fsFail);
>     }, fsFail);
> };
> window.resolveLocalFileSystemURL(cordova.file.externalRootDirectory, gotFileEntry, fsFail);



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org