[
https://issues.apache.org/jira/browse/CB-8740?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14391115#comment-14391115
]
Joe Bowser edited comment on CB-8740 at 4/1/15 6:05 PM:
--------------------------------------------------------
This is fixed. The file is created in the Pictures directory, which is
discovered by the Photos software which now is on every Android device. This
is the default gallery, since every application stores their images somewhere
different on the device, we probably don't want to intentionally pollute the
Camera feed itself, but still be in the gallery.
was (Author: bowserj):
This is fixed. The file is created in the Pictures directory, which is
discovered by the Photos software which now is on every Android device. This
is the default gallery, since every application stores their images somewhere
different on the device, we probably don't want to intentionally pollute the
Camera feed itself.
> Mobile Spec Camera test can't find the photo, keeps finding directory
> ---------------------------------------------------------------------
>
> Key: CB-8740
> URL: https://issues.apache.org/jira/browse/CB-8740
> Project: Apache Cordova
> Issue Type: Bug
> Components: Android, mobile-spec, Plugin Camera
> Reporter: Joe Bowser
> Assignee: Joe Bowser
>
> 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.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]