Code example for AudioManager

Methods: setStreamMute

0
	  * Mute mediaplayer sound 
	  */ 
	 public void isMute() { 
 
		if (mIsMute) {
			mAm.setStreamMute(AudioManager.STREAM_MUSIC, false);
			mIsMute = false;
 
		} else { 
			mAm.setStreamMute(AudioManager.STREAM_MUSIC, true);
			mIsMute = true;
		} 
	 } 
	  
	  
	/** 
	 * Switch background text for the mute/unmute button depending on current 
	 * state (audioOn) 
	 */ 
	public void switchMuteButtonState(boolean audioOn) {
Stop searching for code, let great code find you!  Add Codota to your java IDE