cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Richard B Knoll (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-9897) android getPicture() with destinationType FILE_URI returns content provider instead of file url
Date Tue, 03 Nov 2015 00:35:27 GMT

    [ 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


Mime
View raw message