title: How to get the Android device current media type?
body: <p>I am using the AudioManager in my service to control the media volume, but I can only control the media type, which I write in <code>setStreamVolume()</code>. I have tried to use <code>getRingerMode()</code> to get the media type, but the content is my service's. </p>
  
  <pre><code>int currentType = audioManager.getRingerMode();
  int currentVoice = audioManager.getStreamVolume(currentType);
  
  audioManager.setStreamVolume(currentType, currentVoice, AudioManager.FLAG_PLAY_SOUND | AudioManager.FLAG_SHOW_UI);
  </code></pre>
  
  <p>How can I control the other apps volume?</p>