cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "gao (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CB-10248) Camera plugin FileHelper.getRealPath return null
Date Wed, 23 Dec 2015 02:10:46 GMT

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

gao updated CB-10248:
---------------------
    Description: 
i found when call the 
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.

  was: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.


> 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.2.2
>            Reporter: gao
>
> i found when call the 
> 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.



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