Code example for AudioManager

Methods: setStreamMute

0
	  */ 
	 public void isMute() { 
		 		  
		if (mIsMute) {
			try { 
				mAm.setStreamMute(AudioManager.STREAM_MUSIC, false);
			} catch (Exception e) {
				Log.e("SET MUTE", e.getMessage() );
			} 
			mIsMute = false;
 
		} else { 
			try { 
				mAm.setStreamMute(AudioManager.STREAM_MUSIC, true);
			} catch (Exception e) {
				Log.e("SET MUTE", e.getMessage() );
			} 
			mIsMute = true;
		} 
	 }