Skip to content Skip to sidebar Skip to footer

Android Camera2 Api Opencamera Error

I want to make a simple flashlite application using camera2 api. I am using the following code: public class FlashLightUtilForL { private CameraCaptureSession mSession; private Cap

Solution 1:

I suspect your issue is from CameraDevice.TEMPLATE_MANUAL. Not all devices support this. Also I do not think this works well when the device is using legacy support. Try switching to CameraDevice.TEMPLATE_PREVIEW.

Also, do not forget to release the SufaceTexture when you are don with it.

Post a Comment for "Android Camera2 Api Opencamera Error"