get Max Voice Volume - Android Media

Android examples for Media:Media Volume

Description

get Max Voice Volume

Demo Code


//package com.java2s;

import android.content.Context;

import android.media.AudioManager;

public class Main {

    public static int getMaxVoiceVolume(Context context) {
        AudioManager am = (AudioManager) context
                .getSystemService(Context.AUDIO_SERVICE);
        int audioMaxVolum = am
                .getStreamMaxVolume(AudioManager.STREAM_VOICE_CALL);
        return audioMaxVolum;
    }/* w ww . j a va2 s. c o  m*/
}

Related Tutorials