You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Richard B Knoll (JIRA)" <ji...@apache.org> on 2015/11/03 01:35:27 UTC

[jira] [Commented] (CB-9897) android getPicture() with destinationType FILE_URI returns content provider instead of file url

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

Richard B Knoll commented on CB-9897:
-------------------------------------

Scratch that, you still get a {{content://}} URI from the gallery if you don't set height/width or correctOrientation. [This line|https://github.com/apache/cordova-plugin-camera/blob/master/src/android/CameraLauncher.java#L621] is the culprit (also maybe [this one|https://github.com/apache/cordova-plugin-camera/blob/master/src/android/CameraLauncher.java#L679]). A fix to this might include us having to require READ permissions for this case.

> android getPicture() with destinationType FILE_URI returns content provider instead of file url
> -----------------------------------------------------------------------------------------------
>
>                 Key: CB-9897
>                 URL: https://issues.apache.org/jira/browse/CB-9897
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin Camera
>    Affects Versions: 1.2.0
>            Reporter: Michael Schmidt
>              Labels: Android
>
> Camera options:
> - destinationType: Camera.DestinationType.FILE_URI,
> Situation: getPicture() on android returns content provider instead of file url
> Problem: Other platforms return the file url - camera on android is inconsistent
> This requires for every camera usage a workaround on android - there is even a plugin for this: https://github.com/hiddentao/cordova-plugin-filepath
> -> $window.FilePath.resolveNativePath(fileUrl, function(fileEntry)
> -> directly resolve to native file url on android



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org