You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "James White (JIRA)" <ji...@apache.org> on 2014/06/16 16:34:02 UTC

[jira] [Comment Edited] (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:comment-tabpanel&focusedCommentId=14032471#comment-14032471 ] 

James White edited comment on CB-6944 at 6/16/14 2:33 PM:
----------------------------------------------------------

Added Javascript to default Cordova HelloWorld app's index.js to demonstrate & test image capture issues.


was (Author: jamespwhite):
Added Javascript to default Cordova HelloWorld app's index.js to demonstrate & test image capture issue.

> 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 4.0.4, 4.1
> Cordova 3.5.0
> Media-Capture Plugin 0.3.1
>            Reporter: James White
>            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)