Code example for SeekBar

Methods: getMax

0
		frequency_ = Math.pow((double) progress / seekBar.getMax(), 2.0);
	} 
 
	/** Read the progress bar value and scale to [0-1]. */ 
	private void updateFade(SeekBar seekBar, int progress) {
		fadeRate_ = Math.pow((double) progress / seekBar.getMax(), 2.0);
	} 
 
	private static Camera getCameraInstance() {
		try { 
			return Camera.open();
		} catch (Exception e) {
			Log.e(TAG, "Failed to open camera.", e);
		} 
		return null; 
	} 
 
	/** 
	 * Transform frame from YUV420 to RGB. 
	 * Based on code from http://code.google.com/p/ketai/ 
	 * THANKS!