title: How do you get/set media volume (not ringtone volume) in Android?
body: <p>Is there a way to get/set media volume? I have tried the following:</p>
  
  <pre><code>AudioManager audio = (AudioManager) getSystemService(Context.AUDIO_SERVICE);
  int currentVolume = audio.getStreamVolume(AudioManager.STREAM_RING);
  </code></pre>
  
  <p>but it returns the ringtone volume.</p>