Code example for AudioManager

Methods: adjustStreamVolume

0
 
	/** 
	 * Increase the alarm audio streams volume one step. 
	 */ 
	public void increaseVolume() { 
		audioManager.adjustStreamVolume(AudioManager.STREAM_ALARM,
				AudioManager.ADJUST_RAISE, 0);
	} 
 
	/** 
	 * Decrease the alarm audio streams volume one step (if volume greater than 
	 * the VOLUME_MIN_LIMIT). 
	 */ 
	public void decreaseVolume() { 
		if (audioManager.getStreamVolume(AudioManager.STREAM_ALARM) > VOLUME_MIN_LIMIT) {
			audioManager.adjustStreamVolume(AudioManager.STREAM_ALARM,
					AudioManager.ADJUST_LOWER, 0);
		} 
	} 
 
	/**