turn Up audio to normal - Android Media

Android examples for Media:Media Volume

Description

turn Up audio to normal

Demo Code


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

public class Main{
    /*w  w w. ja v a2  s  . c o m*/
    public static void turnPre(Context context) {

        AudioManager audioMgr = (AudioManager) context
                .getSystemService(Context.AUDIO_SERVICE);
        audioMgr.setRingerMode(AudioManager.RINGER_MODE_NORMAL);
    }
}

Related Tutorials