turn Audio back to normal - Android android.media

Android examples for android.media:Audio

Description

turn Audio back to normal

Demo Code

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

public class Main {

  public static void turnPre(Context context) {
    AudioManager audioMgr = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE);
    audioMgr.setRingerMode(AudioManager.RINGER_MODE_NORMAL);
  }/*from  ww  w . j av  a 2s.  c  om*/

}

Related Tutorials