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 2016/02/22 19:51:18 UTC

[jira] [Resolved] (CB-10248) Camera plugin FileHelper.getRealPath return null

     [ https://issues.apache.org/jira/browse/CB-10248?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Richard B Knoll resolved CB-10248.
----------------------------------
    Resolution: Duplicate

This duplicates CB-10625. This one is older, but more conversation is happening in the other thread so I am linking the issues and closing this one as the duplicate.

> Camera plugin FileHelper.getRealPath return null
> ------------------------------------------------
>
>                 Key: CB-10248
>                 URL: https://issues.apache.org/jira/browse/CB-10248
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin Camera
>    Affects Versions: 2.0.0
>         Environment: android 4.4
>            Reporter: gao
>              Labels: android, triaged
>
> i found when call the FileHelper.getRealPath method throw a exception and return null.
> in the FileHelper.getRealPath mothod if SDK > 19  call the FileHelper.getRealPathFromURI_API19 get the real path  is wrong,
> because  the uri  not necessarily is a document uri when SKD > 19 ,
> so must call the "DocumentsContract.isDocumentUri(cordova.getActivity(),uri)" to sure the uri is a document uri,
> if not will call the FileHelper.getRealPathFromURI_API11to18 get the real path.
> i pull request to master ,but the plugin not merge:[https://github.com/apache/cordova-plugin-camera/pull/148]



--
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