Code example for AudioManager

Methods: adjustVolume

0
        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() {
			 
			@Override 
			public void onClick(View v) {
        		Log.d(TAG, "Next Button Clicked");
				try { 
					musicConn.nextSong();
				} catch (RemoteException e) {
					Log.i(TAG, "Error while moving to next song");					
					e.printStackTrace();
				}