I am writing an application which handles the following:
Check out http://thinkandroid.wordpress.com/2010/04/05/dealing-with-the-android-media-player/
The steps are:
e.g.:
mAudioManager.adjustStreamVolume(AudioManager.STREAM_MUSIC, AudioManager.ADJUST_RAISE, AudioManager.FLAG_SHOW_UI);
to get max vol:
int maxVolume = mAudioManager.getStreamMaxVolume(AudioManager.STREAM_MUSIC);