cameraview
cameraview copied to clipboard
[DEPRECATED] Easily integrate Camera features into your Android app
 The above exception occurs when you switch back from the current application to another application.
Hi, After taking a picture with this library I create a Bitmap and set it in an ImageView as follow: ``` java public void onPictureTaken(CameraView cameraView, byte[] data) { Bitmap...
java.lang.NullPointerException: Attempt to invoke virtual method 'int android.hardware.camera2.CameraCaptureSession.capture(android.hardware.camera2.CaptureRequest, android.hardware.camera2.CameraCaptureSession$CaptureCallback, android.os.Handler)' on a null object reference 41 at com.google.android.cameraview.Camera2.lockFocus(Camera2.java:29) 42 at com.google.android.cameraview.Camera2.takePicture(Camera2.java:4) 43 at com.google.android.cameraview.CameraView.takePicture(CameraView.java:2) 44 at com.louisgeek.louiscustomcamera.CameraActivity.onClick(CameraActivity.java:14) 45 at java.lang.reflect.Method.invoke(Method.java)...
here is the log: E/AndroidRuntime: FATAL EXCEPTION: main Process: com.google.android.cameraview.demo, PID: 5552 java.lang.RuntimeException: Camera is being used after Camera.release() was called at android.hardware.Camera.native_getParameters(Native Method) at android.hardware.Camera.getParameters(Camera.java:3337) at android.hardware.Camera.cameraInitVersion(Camera.java:770) at android.hardware.Camera.cameraInitNormal(Camera.java:784)...
I only got this error on my Huawei Ascend P7 device and not on a Samsung Galaxy S5. When taking a picture, it crashes. ``` java mTakePicture.setOnClickListener(new View.OnClickListener() { @Override...
On tapping multiple times on the capture image button the demo app crashes. The issue appeared on Samsung GT-I9300I running Android 4.4.4 (By the way very helpful library. Can't even...