jwasnoggin commented on issue #611:
URL:
https://github.com/apache/cordova-plugin-camera/issues/611#issuecomment-659082035
> It would be nice to know exactly what that error is, and perhaps
stacktrace.
This is the stacktrace that I got in the logcat:
java.io.FileNotFoundException: open failed: EACCES (Permission denied)
at
android.os.ParcelFileDescriptor.openInternal(ParcelFileDescriptor.java:315)
at
android.os.ParcelFileDescriptor.open(ParcelFileDescriptor.java:220)
at
android.content.ContentResolver.openAssetFileDescriptor(ContentResolver.java:1498)
at
android.content.ContentResolver.openOutputStream(ContentResolver.java:1227)
at
android.content.ContentResolver.openOutputStream(ContentResolver.java:1203)
at
org.apache.cordova.camera.CameraLauncher.writeUncompressedImage(CameraLauncher.java:866)
at
org.apache.cordova.camera.CameraLauncher.writeUncompressedImage(CameraLauncher.java:902)
at
org.apache.cordova.camera.CameraLauncher.processResultFromCamera(CameraLauncher.java:508)
at
org.apache.cordova.camera.CameraLauncher.onActivityResult(CameraLauncher.java:806)
at
org.apache.cordova.CordovaInterfaceImpl.onActivityResult(CordovaInterfaceImpl.java:159)
at
org.apache.cordova.CordovaActivity.onActivityResult(CordovaActivity.java:361)
I was ultimately able to resolve the error using the
`requestLegacyExternalStorage` flag.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]