Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-10248

Camera plugin FileHelper.getRealPath return null

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 2.0.0
    • None
    • cordova-plugin-camera
    • android 4.4

    Description

      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

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              fengxing61 gao
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: