Code example for AudioManager

Methods: adjustStreamVolume

0
					 AudioManager.ADJUST_RAISE,
					 flags);
    } 
 
    public void decreaseVolume(int flags) {
	volumeControl.adjustStreamVolume(STREAM_MUSIC,
					 AudioManager.ADJUST_LOWER,
					 flags);
    } 
 
    public boolean setVolume(int percent, int flags) {
	if (percent < 0 || percent > 100)
	    return false; 
 
	int volIndex = percent * volumeControl.getStreamMaxVolume(STREAM_MUSIC) / 100;
	volumeControl.setStreamVolume(STREAM_MUSIC, volIndex, flags);
	return true; 
    } 
 
 
    public boolean setRingerVolume(int percent, int flags) {