app/src/main/java/cn/lytcom/camera2kit/Camera2Fragment.java
/**
     * Initiate a still image capture.
     */
Initiate a still image capture.
Initiate a still image capture .
public void takePicture() {
        if (!mIsManualFocusing && mAutoFocus && mAutoFocusSupported) {
            Log.i(TAG, "takePicture lockFocus");
            capturePictureWhenFocusTimeout(); 
            lockFocus();
        } else {
            Log.i(TAG, "takePicture captureStill");
            captureStillPicture();
        }
    }
public void takePicture ( ) { if ( ! mIsManualFocusing && mAutoFocus && mAutoFocusSupported ) { Log . i ( TAG , "takePicture lockFocus" ) ; capturePictureWhenFocusTimeout ( ) ; lockFocus ( ) ; } else { Log . i ( TAG , "takePicture captureStill" ) ; captureStillPicture ( ) ; } }
Initiate a still image capture.
Initiate a still image capture .
//Sometimes, camera do not focus in some devices.