menu

CameraKit

One of the hardest Android APIs made into a high level and easy to use library that solves all of your problems.

Channels
Team

Has anyone solved this problem?

April 12, 2019 at 7:59am

Has anyone solved this problem?

April 12, 2019 at 7:59am
When I capturing second video in other activity in version 0.13.5. I have this error
E/AndroidRuntime: FATAL EXCEPTION: CameraViewWorker Process: com.dataplus.prodimex_control, PID: 16056 java.lang.RuntimeException: Fail to connect to camera service at android.hardware.Camera.<init>(Camera.java:654) at android.hardware.Camera.open(Camera.java:495) at com.wonderkiln.camerakit.Camera1.openCamera(Camera1.java:667) at com.wonderkiln.camerakit.Camera1.start(Camera1.java:126) at com.wonderkiln.camerakit.CameraView$2.run(CameraView.java:266) at android.os.Handler.handleCallback(Handler.java:815) at android.os.Handler.dispatchMessage(Handler.java:104) at android.os.Looper.loop(Looper.java:194) at android.os.HandlerThread.run(HandlerThread.java:61)
How resolve It

April 12, 2019 at 8:22am
I can't even catch this error like
  • reply
  • like
private void start_camera(){ try { if (!camera.isStarted()) camera.start(); } catch (RuntimeException e){ Toast.makeText(this, "", Toast.LENGTH_LONG).show(); finish(); } }
  • reply
  • like