cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-6944) Media-Capture plugin on Android returns Canceled error when Accept image is selected
Date Tue, 17 Jun 2014 13:41:04 GMT

    [ https://issues.apache.org/jira/browse/CB-6944?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14033789#comment-14033789
] 

ASF GitHub Bot commented on CB-6944:
------------------------------------

GitHub user dzeims opened a pull request:

    https://github.com/apache/cordova-plugin-media-capture/pull/18

    CB-6944: Android: Fix file permission for camera app image media capture

    

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/dzeims/cordova-plugin-media-capture master

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/cordova-plugin-media-capture/pull/18.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #18
    
----
commit 2467b6ffe559de2e3563bbde8c623ee137339b30
Author: dzeims <dzeims@users.noreply.github.com>
Date:   2014-06-17T13:35:59Z

    CB-6944: Android: Fix file permission for camera app image media capture

----


> 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.x, 4.1, 4.2, 4.3, 4.4
> Cordova 3.5.0-0.2.4
> Plugins:
> org.apache.cordova.file 1.2.0 "File"
> org.apache.cordova.media-capture 0.3.1 "Capture"
>            Reporter: James White
>            Priority: Critical
>         Attachments: index.js
>
>
> 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)

Mime
View raw message