Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

could not take a picture #12

Closed
oussamajebali opened this issue Apr 2, 2015 · 1 comment
Closed

could not take a picture #12

oussamajebali opened this issue Apr 2, 2015 · 1 comment

Comments

@oussamajebali
Copy link

this is what i got when i'm trying to take a picture with my Galaxy S4

04-02 16:03:11.991 27490-27490/io.github.froger.instamaterial E/AndroidRuntime﹕ FATAL EXCEPTION: main
Process: io.github.froger.instamaterial, PID: 27490
java.lang.RuntimeException: setParameters failed
at android.hardware.Camera.native_setParameters(Native Method)
at android.hardware.Camera.setParameters(Camera.java:1747)
at com.commonsware.cwac.camera.CameraView.takePicture(CameraView.java:308)
at com.commonsware.cwac.camera.CameraView.takePicture(CameraView.java:279)
at io.github.froger.instamaterial.ui.activity.TakePhotoActivity.onTakePhotoClick(TakePhotoActivity.java:145)
at io.github.froger.instamaterial.ui.activity.TakePhotoActivity$$ViewInjector$1.doClick(TakePhotoActivity$$ViewInjector.java:35)
at butterknife.internal.DebouncingOnClickListener.onClick(DebouncingOnClickListener.java:22)
at android.view.View.performClick(View.java:4633)
at android.view.View$PerformClick.run(View.java:19330)
at android.os.Handler.handleCallback(Handler.java:733)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:157)
at android.app.ActivityThread.main(ActivityThread.java:5356)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1265)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1081)
at dalvik.system.NativeStart.main(Native Method)

@proman112111
Copy link

I do not know exactly the rootcause, but seem the class "MyCameraHost" got something wrong implementation related to "previewSize" (it is not in the supported previewSize list that returned from "getSupportedPreviewSizes"). You can check it by remove the "getPictureSize" and "adjustPreviewParameters" function. Need more investigation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants