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

Chris Haley commented on CB-7740:
---------------------------------

Here is the stack trace that's generated as soon as the user accepts the image 
they just took:

{code:java}
W/System.err(13080): java.io.FileNotFoundException: No such file or directory
W/System.err(13080):    at 
android.database.DatabaseUtils.readExceptionWithFileNotFoundExceptionFromParcel(DatabaseUtils.java:146)
W/System.err(13080):    at 
android.content.ContentProviderProxy.openAssetFile(ContentProviderNative.java:611)
W/System.err(13080):    at 
android.content.ContentResolver.openAssetFileDescriptor(ContentResolver.java:931)
W/System.err(13080):    at 
android.content.ContentResolver.openOutputStream(ContentResolver.java:678)
W/System.err(13080):    at 
android.content.ContentResolver.openOutputStream(ContentResolver.java:654)
W/System.err(13080):    at 
org.apache.cordova.mediacapture.Capture$2.run(Capture.java:325)
W/System.err(13080):    at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
W/System.err(13080):    at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
W/System.err(13080):    at java.lang.Thread.run(Thread.java:841)
{code}

> 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: Android 4.4.4
> Cordova 3.6.3
> Galaxy S5
>            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\Code: " + err.code);
>       }, {limit : 100});
> };
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to