Java tutorial
//package com.java2s; //License from project: Open Source License import android.content.Context; import android.media.AudioManager; public class Main { public static int getMaxVolume(Context context) { AudioManager manager = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE); int max = manager.getStreamMaxVolume(AudioManager.STREAM_MUSIC); return max; } }