Code example for Camera

Methods: releasesetPreviewCallbackWithBufferstopPreview

0
        } 
    } 
 
    private void shutdownCamera() { 
        if (mCamera != null) {
            mCamera.setPreviewCallbackWithBuffer(null);
            mCamera.stopPreview();
            mCamera.release();
            mCamera = null;
            mState = STATE_OFF;
        } 
    } 
 
    private void startPreview() { 
        if (mState != STATE_OFF) {
            // Stop for a while to drain callbacks 
            mCamera.setPreviewCallbackWithBuffer(null);
            mCamera.stopPreview();
            mState = STATE_OFF;
            Handler h = new Handler();
Contextual code suggestions in your IDE  Get Codota for Java