cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ben Ng (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CB-5131) Callbacks are fired on the capture following the original capture when using fastclick
Date Sun, 20 Oct 2013 06:23:43 GMT

     [ 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:
https://issues.apache.org/jira/browse/CB-5132?jql=project%20%3D%20CB%20AND%20resolution%20%3D%20Unresolved%20AND%20priority%20%3D%20Major%20ORDER%20BY%20key%20DESC

The same code works just fine on iOS.

Once fastclick.js is removed, the issue is resolved.

  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 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:
https://issues.apache.org/jira/browse/CB-5132?jql=project%20%3D%20CB%20AND%20resolution%20%3D%20Unresolved%20AND%20priority%20%3D%20Major%20ORDER%20BY%20key%20DESC

The same code works just fine on iOS.


> Callbacks are fired on the capture following the original capture when using fastclick
> --------------------------------------------------------------------------------------
>
>                 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:
> https://issues.apache.org/jira/browse/CB-5132?jql=project%20%3D%20CB%20AND%20resolution%20%3D%20Unresolved%20AND%20priority%20%3D%20Major%20ORDER%20BY%20key%20DESC
> The same code works just fine on iOS.
> Once fastclick.js is removed, the issue is resolved.



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

Mime
View raw message