List of usage examples for android.media AudioManager setMicrophoneMute
public void setMicrophoneMute(boolean on)
From source file:com.nbplus.vbroadlauncher.RealtimeBroadcastActivity.java
private void microphoneMute(boolean onoff) { AudioManager audioManager = (AudioManager) getSystemService(Context.AUDIO_SERVICE); if (!audioManager.isMicrophoneMute() && onoff) { mIsMuted = true;// w ww .ja va2s . c o m audioManager.setMicrophoneMute(onoff); } else if (!onoff) { audioManager.setMicrophoneMute(onoff); } }