Code example for Camera

Methods: setOneShotPreviewCallbacksetPreviewCallback

0
	 */ 
	public void requestPreviewFrame(Handler handler, int message) { 
		if (camera != null && previewing) { 
			previewCallback.setHandler(handler, message); 
			if (useOneShotPreviewCallback) { 
				camera.setOneShotPreviewCallback(previewCallback); 
			} else { 
				camera.setPreviewCallback(previewCallback); 
			} 
		} 
	} 
 
	/** 
	 * Asks the camera hardware to perform an autofocus. 
	 *  
	 * @param handler 
	 *            The Handler to notify when the autofocus completes. 
	 * @param message 
	 *            The message to deliver. 
	 */ 
	public void requestAutoFocus(Handler handler, int message) {