First time worked all good, then for some reason it kept crashing! Then after restarting the device
it stopped. But it then crashes again after sometime
Caused by: java.lang.RuntimeException: startPreview failed
at android.hardware.Camera.startPreview(Native Method) at
com.google.android.cameraview.Camera1.start(Camera1.java:95)
at com.google.android.cameraview.CameraView.start(CameraView.java:252)
First time worked all good, then for some reason it kept crashing! Then after restarting the device it stopped. But it then crashes again after sometime