You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Björn Vermeule (JIRA)" <ji...@apache.org> on 2014/05/21 10:32:40 UTC
[jira] [Closed] (CB-6692) Launching the camera on Android fails
with the Play Store version of (Google) Camera.
[ https://issues.apache.org/jira/browse/CB-6692?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Björn Vermeule closed CB-6692.
------------------------------
Resolution: Invalid
The error occurred due to an error on my side. I accidentally bound the event of opening the camera more than once.
> Launching the camera on Android fails with the Play Store version of (Google) Camera.
> -------------------------------------------------------------------------------------
>
> Key: CB-6692
> URL: https://issues.apache.org/jira/browse/CB-6692
> Project: Apache Cordova
> Issue Type: Bug
> Components: Plugin Camera
> Affects Versions: 3.4.0
> Reporter: Björn Vermeule
> Attachments: Screenshot_2014-05-14-16-58-40.png
>
>
> Google recently released the Android Camera as an app in the Play Store ([link|https://play.google.com/store/apps/details?id=com.google.android.GoogleCamera]). It seems that the most recent version of Google Camera prevents Cordova to launch/connect to the app.
> When removing Google Camera (and thus reverting to the system Camera) Cordova can successfully take pictures. Cordova fails when I reinstall Google Camera again.
> Cordova fails with the error message "Can't connect to the camera." (see attached screenshot). The camera does start and I am able to take pictures (from the camera's point of view) but Cordova will always fail and call the error handler.
> JavaScript code I'm using to launch the camera:
> {code:JavaScript}
> navigator.camera.getPicture(
> function(imageData) {
> $('.taken-image').attr('src', imageData);
> },
> function() {
> alert('Picture has not been taken ...');
> }, {
> quality: 50,
> destinationType: Camera.DestinationType.FILE_URI,
> sourceType: Camera.PictureSourceType.CAMERA
> });
> {code}
> I've tested this on a Nexus 4 and 5.
--
This message was sent by Atlassian JIRA
(v6.2#6252)