Code example for Camera

Methods: cancelAutoFocusstopPreview

0
        mAutofocusThread.start();
    } 
     
    void stopPreview() { 
    	mAutoFocus = false;
    	if (mCamera!=null) mCamera.cancelAutoFocus();
    	mAutofocusThread=null;
    	if (mCamera!=null) mCamera.stopPreview();
    } 
     
    void startPreview(){ 
    	if (mCamera!=null){
    		mCamera.startPreview();
    		startAutofocus(); 
    	} 
    } 
 
    @Override 
    public void surfaceCreated(SurfaceHolder holder) {
    	if(mCamera==null){
    		try {