cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Haley (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (CB-7740) navigator.device.capture.captureImage() returns error each time
Date Tue, 11 Nov 2014 18:23:35 GMT

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

Chris Haley edited comment on CB-7740 at 11/11/14 6:23 PM:
-----------------------------------------------------------

See CB-7768 for a patch that works.


was (Author: lifz):
See CB-7768 for the work-around. That patch works.

> navigator.device.capture.captureImage() returns error each time
> ---------------------------------------------------------------
>
>                 Key: CB-7740
>                 URL: https://issues.apache.org/jira/browse/CB-7740
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 3.6.3
>         Environment: Galaxy S5
> Android 4.4.4
> Cordova 3.6.3
> org.apache.cordova.media-capture 0.3.3
> org.apache.cordova.file 1.3.1
>            Reporter: Chris Haley
>              Labels: captureImage
>
> The following test code is producing an error message as soon as the Android camera app
closes after the "OK" button is clicked to accept the image. This is on Android 4.4.4, Cordova
3.6.3, Galaxy S5. There are no prior albums/pictures on the phone. I tried many different
versions of the media-capture and file plugins. The "Retry" button and back button work as
expected.
> HTML:
> {code:html}
> <button type="button" onclick="takePicture();">Take Pictures</button>
> {code}
> JavaScript:
> {code:javascript}
> takePicture = function() {
> 	navigator.device.capture.captureImage(function(mediaFiles) {
> 		alert("Pictures captured!");
> 	}, function(err) {
> 		alert("Err: " + err.message + "\n\nCode: " + err.code);
> 	}, {limit : 100});
> };
> {code}



--
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


Mime
View raw message