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

Samsung device returns null from Cursor in Camera getRealPath

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Cannot Reproduce
    • 1.2.1
    • 1.2.1
    • cordova-plugin-camera
    • Samsung 4.1.2 GT-N8010

    • Patch, Important

    Description

      Using a Samsung Galaxy Note GT-N8010 with android 4.1.2 produces an exception in the Exif class. This is due to a filePath being null on line 66 of src/android/ExifHelper.java

       new ExifInterface(filePath)

      This error has been introduced when the switch was made to using Cursors. This error did not happen in with the camera plugin bundled with Phone Gap 3.4.

      This has been duplicated by other developers independently
      http://stackoverflow.com/questions/30616846/phonegap-app-crash-when-take-a-new-photo-with-camera-plugin

      Attachments

        1. realpath.diff
          4 kB
          Charles Verge

        Issue Links

          Activity

            People

              Unassigned Unassigned
              charlesverge Charles Verge
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: