Return-Path: X-Original-To: apmail-cordova-issues-archive@minotaur.apache.org Delivered-To: apmail-cordova-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 70BFE11FDA for ; Thu, 15 May 2014 05:27:01 +0000 (UTC) Received: (qmail 75127 invoked by uid 500); 14 May 2014 15:11:16 -0000 Delivered-To: apmail-cordova-issues-archive@cordova.apache.org Received: (qmail 75076 invoked by uid 500); 14 May 2014 15:11:16 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 75029 invoked by uid 99); 14 May 2014 15:11:15 -0000 Received: from Unknown (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 May 2014 15:11:15 +0000 Date: Wed, 14 May 2014 15:11:15 +0000 (UTC) From: =?utf-8?Q?Bj=C3=B6rn_Vermeule_=28JIRA=29?= To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CB-6692) Launching the camera on Android fails with the Play Store version of (Google) Camera. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CB-6692?page=3Dcom.atlassian.j= ira.plugin.system.issuetabpanels:all-tabpanel ] Bj=C3=B6rn Vermeule updated CB-6692: ------------------------------- Description:=20 Google recently released the Android Camera as an app in the Play Store ([L= ink|https://play.google.com/store/apps/details?id=3Dcom.google.android.Goog= leCamera]). 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) Cordo= va can successfully take pictures. Cordova fails when I reinstall Google Ca= mera again. Cordova fails with the error message "Can't connect to the camera." (see at= tached screenshot). The camera does start and I am able to take pictures (f= rom the camera's point of view) but Cordova will always fail and call the e= rror 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. was: Google recently released the Android Camera as an app in the Play Store ([L= ink|https://play.google.com/store/apps/details?id=3Dcom.google.android.Goog= leCamera]). 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) Cordo= va can successfully take pictures. Cordova fails when I reinstall Google Ca= mera again. Cordova fails with the error message "Can't connect to the camera." (see at= tached screenshot). The camera does start and I am able to take pictures (f= rom the camera's point of view) but Cordova will always fail and call the e= rror 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} > Launching the camera on Android fails with the Play Store version of (Goo= gle) 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=C3=B6rn 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=3Dcom.google.android.Go= ogleCamera]). It seems that the most recent version of Google Camera preven= ts Cordova to launch/connect to the app. > When removing Google Camera (and thus reverting to the system Camera) Cor= dova 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)