Android/SurfaceHolder

SurfaceView cameraView = (CameraView) this.findViewById(R.id.CameraView); SurfaceHolder surfaceHolder = cameraView.getHolder; surfaceHolder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS);