Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
I tried to accept a pull request from a user, and I have no idea if it works, because it appears that the Camera API is broken and it doesn't pass the manual mobile-spec tests. I keep getting this error on the Nexus 7 running Lollipop, Nexus 6 running Lollipop and the Samsung Galaxy S4 running 4.4.2. (Log from S4):
W/System.err( 7822): java.io.FileNotFoundException: Is a directory
W/System.err( 7822): at android.os.Parcel.openFileDescriptor(Native Method)
W/System.err( 7822): at android.os.ParcelFileDescriptor.openInternal(ParcelFileDescriptor.java:252)
W/System.err( 7822): at android.os.ParcelFileDescriptor.open(ParcelFileDescriptor.java:198)
W/System.err( 7822): at android.content.ContentResolver.openAssetFileDescriptor(ContentResolver.java:902)
W/System.err( 7822): at android.content.ContentResolver.openOutputStream(ContentResolver.java:672)
W/System.err( 7822): at android.content.ContentResolver.openOutputStream(ContentResolver.java:648)
W/System.err( 7822): at org.apache.cordova.camera.CameraLauncher.processResultFromCamera(CameraLauncher.java:418)
W/System.err( 7822): at org.apache.cordova.camera.CameraLauncher.onActivityResult(CameraLauncher.java:610)
W/System.err( 7822): at org.apache.cordova.CordovaInterfaceImpl.onActivityResult(CordovaInterfaceImpl.java:90)
W/System.err( 7822): at org.apache.cordova.CordovaActivity.onActivityResult(CordovaActivity.java:319)
W/System.err( 7822): at android.app.Activity.dispatchActivityResult(Activity.java:5618)
W/System.err( 7822): at android.app.ActivityThread.deliverResults(ActivityThread.java:3547)
W/System.err( 7822): at android.app.ActivityThread.handleSendResult(ActivityThread.java:3594)
W/System.err( 7822): at android.app.ActivityThread.access$1400(ActivityThread.java:161)
W/System.err( 7822): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1313)
W/System.err( 7822): at android.os.Handler.dispatchMessage(Handler.java:102)
W/System.err( 7822): at android.os.Looper.loop(Looper.java:157)
W/System.err( 7822): at android.app.ActivityThread.main(ActivityThread.java:5356)
W/System.err( 7822): at java.lang.reflect.Method.invokeNative(Native Method)
W/System.err( 7822): at java.lang.reflect.Method.invoke(Method.java:515)
W/System.err( 7822): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1265)
W/System.err( 7822): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1081)
W/System.err( 7822): at dalvik.system.NativeStart.main(Native Method)
I have no idea how we're handling files these days, and I think that's the main probelm with out camera plugin. Once we take the image and save it, the code just breaks, and it would be good if we could somehow bundle some JUnit tests with this to make sure that the camera actually stays working, since it's really brittle right now.
Attachments
Issue Links
- relates to
-
CB-5838 Android 4.4 - Path returned from Camera plugin FILE_URI is not readable
-
- Closed
-
-
CB-5839 Android 4.4 - Camera plugin saveToPhotoAlbum option doesn't work
-
- Closed
-
-
CB-6249 Camera fails to return an actual FILE_URI it always returns content://
-
- Closed
-
-
CB-8878 Nexus 5 DestinationType.FILE_URI issue OS 5.1 Lollipop
-
- Closed
-