You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Simon MacDonald (JIRA)" <ji...@apache.org> on 2013/01/09 03:38:12 UTC

[jira] [Resolved] (CB-2165) The "saveToPhotoAlbum" option for Camera.getPicture does not work with Cordova 2.2/Android

     [ https://issues.apache.org/jira/browse/CB-2165?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Simon MacDonald resolved CB-2165.
---------------------------------

    Resolution: Not A Problem
      Assignee: Simon MacDonald  (was: Filip Maj)

This isn't actually an issue. If you set the options like:

    saveToPhotoAlbum: "true"

the JSON parser thinks that you are passing in a string. If you set the options to be:

    saveToPhotoAlbum: true

then everything will work as expected.
                
> The "saveToPhotoAlbum" option for Camera.getPicture does not work with Cordova 2.2/Android
> ------------------------------------------------------------------------------------------
>
>                 Key: CB-2165
>                 URL: https://issues.apache.org/jira/browse/CB-2165
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: CordovaJS
>    Affects Versions: 2.2.0
>         Environment: Cordova 2.2, Android 2.3.4
>            Reporter: Thomas Dinger
>            Assignee: Simon MacDonald
>            Priority: Minor
>
> The following JS call results in a call to the success function when the picture is taken, but the picture is not added to the photo library.
> 01-08 09:27:53.470: D/CordovaLog(4089): getPicture() {
> 01-08 09:27:53.470: D/CordovaLog(4089):     "targetHeight": "600",
> 01-08 09:27:53.470: D/CordovaLog(4089):     "targetWidth": "600",
> 01-08 09:27:53.470: D/CordovaLog(4089):     "saveToPhotoAlbum": "true",
> 01-08 09:27:53.470: D/CordovaLog(4089):     "quality": "50",
> 01-08 09:27:53.470: D/CordovaLog(4089):     "destinationType": 1,
> 01-08 09:27:53.470: D/CordovaLog(4089):     "mediaType": 0,
> 01-08 09:27:53.470: D/CordovaLog(4089):     "encodingType": 0,
> 01-08 09:27:53.470: D/CordovaLog(4089):     "allowEdit": "false",
> 01-08 09:27:53.470: D/CordovaLog(4089):     "sourceType": 1
> 01-08 09:27:53.470: D/CordovaLog(4089): }

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira