private boolean repeatingPreview(Object tag){
  try {
    CaptureRequest.Builder builder=mDevice.createCaptureRequest(CameraDevice.TEMPLATE_PREVIEW);
    builder.addTarget(mPreviewSurface);
    builder.set(CaptureRequest.CONTROL_MODE,CameraMetadata.CONTROL_MODE_AUTO);
    addBaselineCaptureKeysToRequest(builder);
    mCaptureSession.setRepeatingRequest(builder.build(),mCaptureCallback,mCameraHandler);
    Log.v(TAG,String.format("Sent repeating Preview request, zoom = %.2f",mZoomValue));
    return true;
  }
 catch (  CameraAccessException ex) {
    Log.e(TAG,"Could not access camera setting up preview.",ex);
    return false;
  }
}

private boolean repeatingPreview ( Object tag ) { try { CaptureRequest . Builder builder = mDevice . createCaptureRequest ( CameraDevice . TEMPLATE_PREVIEW ) ; builder . addTarget ( mPreviewSurface ) ; builder . set ( CaptureRequest . CONTROL_MODE , CameraMetadata . CONTROL_MODE_AUTO ) ; addBaselineCaptureKeysToRequest ( builder ) ; mCaptureSession . setRepeatingRequest ( builder . build ( ) , mCaptureCallback , mCameraHandler ) ; Log . v ( TAG , String . format ( "Sent repeating Preview request, zoom = %.2f" , mZoomValue ) ) ; return true ; } catch ( CameraAccessException ex ) { Log . e ( TAG , "Could not access camera setting up preview." , ex ) ; return false ; } }
request preview capture stream with af_mode_continuous_picture .
