incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kimmo Puputti (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-756) Image Capturing does not call the success callback
Date Mon, 14 May 2012 06:46:01 GMT

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

Kimmo Puputti commented on CB-756:
----------------------------------

The problem was due to the app permissions. Adding android.permission.READ_PHONE_STATE to
the manifest file fixed the problem.

The solution was kind of a wild guess, though. Are the required permissions per feature documented
somewhere?
                
> Image Capturing does not call the success callback
> --------------------------------------------------
>
>                 Key: CB-756
>                 URL: https://issues.apache.org/jira/browse/CB-756
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 1.7.0
>         Environment: Tested on Android 2.3, 2.3, and 4.0 emulators as well as a device
running Android 4.0.
>            Reporter: Kimmo Puputti
>            Assignee: Joe Bowser
>            Priority: Blocker
>   Original Estimate: 0.5h
>  Remaining Estimate: 0.5h
>
> When a image capturing is initiated with a call to
> navigator.device.capture.captureImage(success, error);
> the camera opens and you can take a picture, but the 'ok' button doesn't work. You can
cancel and the error callback is invoked.
> Might this be due to Cordova 1.7.0 changing the reference to the Plugin context from
Plugin.ctx to Plugin.ctx.getContext()? At least that's the change I had to make to the localNotification
plugin to get it working.
> If that's the case, the problematic line might be this one:
> https://github.com/apache/incubator-cordova-android/blob/master/framework/src/org/apache/cordova/Capture.java#L203

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message