cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Haley (JIRA)" <>
Subject [jira] [Created] (CB-7740) navigator.device.capture.captureImage() returns error each time
Date Wed, 08 Oct 2014 18:47:35 GMT
Chris Haley created CB-7740:

             Summary: navigator.device.capture.captureImage() returns error each time
                 Key: CB-7740
             Project: Apache Cordova
          Issue Type: Bug
          Components: Android
    Affects Versions: 3.6.3
         Environment: Android 4.4.4
Cordova 3.6.3
Galaxy S5
            Reporter: Chris Haley

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.

<button type="button" onclick="takePicture();">Take Pictures</button>

takePicture = function() {
	navigator.device.capture.captureImage(function(mediaFiles) {
		alert("Pictures captured!");
	}, function(err) {
		alert("Err: " + err.message + "\n\Code: " + err.code);
	}, {limit : 100});

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message