Code example for AudioManager

Methods: setStreamMute

0
		} 
	} 
 
	private void offHook() { 
		Log.d(TAG, "Off hook");
		am.setStreamMute(AudioManager.STREAM_RING, false);
	} 
 
	private void idle() { 
		Log.d(TAG, "Restoring ringer state");
		am.setStreamMute(AudioManager.STREAM_RING,false);
	} 
 
	private void ringing() { 
		Log.d(TAG, "muting ringer stream");
		am.setStreamMute(AudioManager.STREAM_RING, true);
	} 
}