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

On Capturing picture app is crashing #4

Open
adarshkumarshiva opened this issue Apr 17, 2018 · 0 comments
Open

On Capturing picture app is crashing #4

adarshkumarshiva opened this issue Apr 17, 2018 · 0 comments

Comments

@adarshkumarshiva
Copy link

on calling : camera.takePicture(null, null, pictureCallback);
the app is crashing
04-17 11:57:35.281 25292-25292/com.jjoe64.motiondetection E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.jjoe64.motiondetection, PID: 25292
java.lang.RuntimeException: takePicture failed
at android.hardware.Camera.native_takePicture(Native Method)
at android.hardware.Camera.takePicture(Camera.java:1865)
at android.hardware.Camera.takePicture(Camera.java:1810)
at com.jjoe64.motiondetection.MainActivity.captureImageOnMotionDetected(MainActivity.java:73)
at com.jjoe64.motiondetection.MainActivity$1.onMotionDetected(MainActivity.java:52)
at com.jjoe64.motiondetection.motiondetection.MotionDetector$MotionDetectorThread$2.run(MotionDetector.java:55)
at android.os.Handler.handleCallback(Handler.java:822)
at android.os.Handler.dispatchMessage(Handler.java:104)
at android.os.Looper.loop(Looper.java:207)
at android.app.ActivityThread.main(ActivityThread.java:5811)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:791)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:681)
04-17 11:57:39.875 25292-25308/com.jjoe64.motiondetection W/art: Suspending all threads took: 13.631ms
04-17 11:57:44.306 25292-25306/com.jjoe64.motiondetection I/System: FinalizerDaemon: finalize objects = 161

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

1 participant