Code example for AudioManager

Methods: adjustStreamVolumegetStreamVolume

0
			Log.e("vol", "up " + a + " " + b);
			audioManager.adjustStreamVolume(AudioManager.STREAM_MUSIC,
					AudioManager.ADJUST_RAISE, 0);
		} else { 
			Log.e("vol", "down " + a + " " + b);
			audioManager.adjustStreamVolume(AudioManager.STREAM_MUSIC,
					AudioManager.ADJUST_LOWER, 0);
		} 
		volumnText.setText("Volumn:"
				+ audioManager.getStreamVolume(AudioManager.STREAM_MUSIC));
	} 
 
	boolean inRange(float inX, float inY) {
		if (inX > 400 && inY > 550) {
			return true; 
		} 
		return false; 
	} 
}