Code example for Camera

Methods: cancelAutoFocusrelease

0
		Log.d("Camera", "surfaceDestroyed");
	} 
	 
	public void stop() { 
		if (scanCamera != null) {
			scanCamera.cancelAutoFocus();
			scanCamera.release();
			scanCamera = null;
		} 
	} 
	 
	public void focus() { 
		if (scanCamera != null) {
			scanCamera.autoFocus(new Camera.AutoFocusCallback() {
 
				@Override 
				public void onAutoFocus(boolean success, Camera camera) {
					if (success) {
						scanCamera.setOneShotPreviewCallback(previewCallback);
					} 
				}