adjust Voice To System Same - Android Media

Android examples for Media:Media Volume

Description

adjust Voice To System Same

Demo Code


//package com.java2s;

import android.content.Context;

import android.media.AudioManager;

public class Main {

    public static void adjustVoiceToSystemSame(Context context) {
        AudioManager audioManager = (AudioManager) context
                .getSystemService(Context.AUDIO_SERVICE);
        audioManager.adjustStreamVolume(AudioManager.STREAM_MUSIC,
                AudioManager.ADJUST_SAME, 0);
    }/*from   w w  w. j a v  a 2s.  c o m*/
}

Related Tutorials