Here you can find the source of turnDown(Context context)
public static void turnDown(Context context)
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*/ }