Code example for Camera

Methods: getParameters

0
		com.rhomobile.rhodes.camera.Camera.logDebug(TAG, "getClosestPreviewSize() return ["+String.valueOf(neww)+", "+String.valueOf(newh)+"]");
		return new Size(neww, newh);
	} 
	 
	public boolean isAutoFocusSupported(android.hardware.Camera camera) {
		String focus_mode = camera.getParameters().getFocusMode();
		boolean auto_focus_supported = false;
		if  ( focus_mode != null ) {
			auto_focus_supported = (focus_mode.equals(android.hardware.Camera.Parameters.FOCUS_MODE_AUTO)) || (focus_mode.equals(android.hardware.Camera.Parameters.FOCUS_MODE_MACRO));
		} 
		return auto_focus_supported;
	} 
	 
	public boolean isFlashModeSupported(android.hardware.Camera camera, String flash_mode) {
		String camera_flash_mode = camera.getParameters().getFlashMode();
		if (flash_mode != null) { 
			//Utils.platformLog("$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$  FLASH_MODE", camera_flash_mode); 
		} 
		else { 
			//Utils.platformLog("$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$  FLASH_MODE", "NULL"); 
		}