Here you can find the source of turnPre(Context context)
public static void turnPre(Context context)
import android.content.Context; import android.media.AudioManager; public class Main{ public static void turnPre(Context context) { Debug.e("Globle", "turnPre"); AudioManager audioMgr = (AudioManager) context .getSystemService(Context.AUDIO_SERVICE); audioMgr.setRingerMode(AudioManager.RINGER_MODE_NORMAL); }//from w w w. java 2 s. c o m }