You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Ben Ng (JIRA)" <ji...@apache.org> on 2013/10/20 07:23:41 UTC

[jira] [Updated] (CB-5131) Callbacks are fired on the capture following the original capture

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

Ben Ng updated CB-5131:
-----------------------

    Description: 
When running the example camera code from the docs (either with DATA_URL or FILE_URI) on android, neither the success nor error callbacks get called immediately after `.getPicture`.

However, if `.getPicture` is used again, the callback that should have fired the last time now gets fired, instead of the expected callback.

So if I take a picture of A, nothing happens. If i now take a picture of B, I get the picture of A.

Here is the stack trace from logcat:
https://gist.github.com/ben-ng/7064068

Possibly related issue I found:
https://issues.apache.org/jira/browse/CB-568

The same code works just fine on iOS.

  was:
When running the example camera code from the docs (either with DATA_URL or FILE_URI) on android, neither the success nor error callbacks get called.

The function is `navigator.camera.getPicture`

Here is the stack trace from logcat:
https://gist.github.com/ben-ng/7064068

Related issue I found:
https://issues.apache.org/jira/browse/CB-568

The same code works on iOS.

        Summary: Callbacks are fired on the capture following the original capture  (was: Cannot capture images on android without SD card)

> Callbacks are fired on the capture following the original capture
> -----------------------------------------------------------------
>
>                 Key: CB-5131
>                 URL: https://issues.apache.org/jira/browse/CB-5131
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin Camera
>    Affects Versions: 3.1.0
>         Environment: Mac OSX, Samsung Galaxy S3, Android 4.1.1
>            Reporter: Ben Ng
>              Labels: android, bug, camera
>
> When running the example camera code from the docs (either with DATA_URL or FILE_URI) on android, neither the success nor error callbacks get called immediately after `.getPicture`.
> However, if `.getPicture` is used again, the callback that should have fired the last time now gets fired, instead of the expected callback.
> So if I take a picture of A, nothing happens. If i now take a picture of B, I get the picture of A.
> Here is the stack trace from logcat:
> https://gist.github.com/ben-ng/7064068
> Possibly related issue I found:
> https://issues.apache.org/jira/browse/CB-568
> The same code works just fine on iOS.



--
This message was sent by Atlassian JIRA
(v6.1#6144)