Android Audio Sound Turn turnDown(Context context)

Here you can find the source of turnDown(Context context)

Description

turn Down

Declaration

public static void turnDown(Context context) 

Method Source Code

import android.content.Context;
import android.media.AudioManager;

public class Main{
    public static void turnDown(Context context) {
        Debug.e("Globle", "turnDown");
        AudioManager audioMgr = (AudioManager) context
                .getSystemService(Context.AUDIO_SERVICE);
        audioMgr.setRingerMode(AudioManager.RINGER_MODE_SILENT);
    }/*from   w w  w.j  a  v a2s . c o m*/
}

Related

  1. mute(Context context, boolean on)
  2. turnPre(Context context)
  3. turnUpMost(Context context)
  4. turnUpSecond(Context context)