Skip to content Skip to sidebar Skip to footer

Android Camera2 Createcapturesession Deprecated

CameraDevice.createCaptureSession is mostly deprecated. Any example on how to use the left over version method with the SessionConfiguration argument (and there especially the exec

Solution 1:

If you do not want to use any executor capabilites you can use a HandlerExecutor:

SessionConfiguration sessionConfiguration = new SessionConfiguration(SessionConfiguration.SESSION_REGULAR, Collections.singletonList(outputConfiguration), new HandlerExecutor(mCameraHandler.getLooper()), mCameraSessionListener);
cameraDevice.createCaptureSession(sessionConfiguration);

Post a Comment for "Android Camera2 Createcapturesession Deprecated"