You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Andrew Grieve (JIRA)" <ji...@apache.org> on 2014/06/27 20:54:25 UTC

[jira] [Resolved] (CB-6944) Media-Capture plugin on Android returns Canceled error when Accept image is selected

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

Andrew Grieve resolved CB-6944.
-------------------------------

    Resolution: Duplicate

> Media-Capture plugin on Android returns Canceled error when Accept image is selected
> ------------------------------------------------------------------------------------
>
>                 Key: CB-6944
>                 URL: https://issues.apache.org/jira/browse/CB-6944
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin Media Capture
>    Affects Versions: 3.5.0
>         Environment: Android 2.3.x,4.0.x, 4.1, 4.2, 4.3, 4.4
> Cordova 3.5.0-0.2.4
> Plugins:
> org.apache.cordova.file 1.2.0 "File"
> org.apache.cordova.media-capture 0.3.1 "Capture"
>            Reporter: James White
>            Assignee: Andrew Grieve
>            Priority: Critical
>         Attachments: index.js
>
>
> Attempting to run the following:
> {noformat}
> navigator.device.capture.captureImage(function(mediaFiles) { alert('success?');  },
> function(error)
> {
>   navigator.notification.alert('Error code: ' + error.code + ' = ' + error.message, null, 'Capture Error');
>  },{ limit:1 });
> {noformat}
> always invokes the error callback with the object:
> {noformat}
> {"message":"Canceled.", "code":3}
> {noformat}
> even if the accept image option is selected.
> Android 4.4 behaves differently, where tapping on the accept image option does nothing and instead of returning with the error, it remains on the captured photo view.



--
This message was sent by Atlassian JIRA
(v6.2#6252)