Code example for AudioManager

Methods: adjustVolume

0
        upButton.setOnClickListener(new OnClickListener() {
			 
			@Override 
			public void onClick(View v) {
				Log.d(TAG, "Up Button Clicked");
				audioManager.adjustVolume(AudioManager.ADJUST_RAISE, AudioManager.FLAG_PLAY_SOUND);
			} 
		}); 
         
        Button downButton = (Button) findViewById(R.id.downButton);
        downButton.setOnClickListener(new OnClickListener() {
        	 
        	@Override 
        	public void onClick(View v) {
        		Log.d(TAG, "Down Button Clicked");
				audioManager.adjustVolume(AudioManager.ADJUST_LOWER, AudioManager.FLAG_PLAY_SOUND);        		
        	} 
        }); 
         
        Button nextButton = (Button) findViewById(R.id.nextTrack);
        nextButton.setOnClickListener(new OnClickListener() {