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 247B211955 for ; Mon, 16 Jun 2014 14:33:42 +0000 (UTC) Received: (qmail 82440 invoked by uid 500); 16 Jun 2014 14:33:41 -0000 Delivered-To: apmail-cordova-issues-archive@cordova.apache.org Received: (qmail 82415 invoked by uid 500); 16 Jun 2014 14:33:41 -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 77545 invoked by uid 99); 16 Jun 2014 14:32:01 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Jun 2014 14:32:01 +0000 Date: Mon, 16 Jun 2014 14:32:01 +0000 (UTC) From: "James White (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CB-6944) Media-Capture plugin on Android returns Canceled error when Accept image is selected MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CB-6944?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14032468#comment-14032468 ] James White commented on CB-6944: --------------------------------- Also encountering the described Android 4.4 behavior on the Android 4.03-4.3 x86 emulators. > Media-Capture plugin on Android returns Canceled error when Accept image is selected > ------------------------------------------------------------------------------------ > > Key: CB-6944 > URL: https://issues.apache.org/jira/browse/CB-6944 > Project: Apache Cordova > Issue Type: Bug > Components: Plugin Media Capture > Affects Versions: 3.5.0 > Environment: Android 4.0.4, 4.1 > Cordova 3.5.0 > Media-Capture Plugin 0.3.1 > Reporter: James White > Priority: Critical > > Attempting to run the following: > {noformat} > navigator.device.capture.captureImage(function(mediaFiles) { alert('success?'); }, > function(error) > { > navigator.notification.alert('Error code: ' + error.code + ' = ' + error.message, null, 'Capture Error'); > },{ limit:1 }); > {noformat} > always invokes the error callback with the object: > {noformat} > {"message":"Canceled.", "code":3} > {noformat} > even if the accept image option is selected. > Android 4.4 behaves differently, where tapping on the accept image option does nothing and instead of returning with the error, it remains on the captured photo view. -- This message was sent by Atlassian JIRA (v6.2#6252)