title: Android: music volume stays low after audio focus gained
body: <p>In my player app (on <code>Android 6.0</code>)  the music volume (of my own player, not the media player api) remains low/ ducked after the audio focus returns to the app.</p>
  
  <p>I'm not ducking anything myself when the audio focus gets lost, just stopping and resuming the playback on the respective event types <code>AUDIOFOCUS_GAIN</code> / <code>AUDIOFOCUS_LOSS</code> of my <code>OnAudioFocusChangeListener</code> implementation.</p>
  
  <p>I have already tried to explicitly set the stream_music volume to max or to call</p>
  
  <pre><code>adjustStreamVolume(AudioManager.STREAM_MUSIC, AudioManager.ADJUST_RAISE, 0);
  </code></pre>
  
  <p>but with no success. My app needs to be restarted then the volume level is normal again.</p>
  
  <p>Whereas the Android media player behaves correctly, it raises the volume after a phone call is finished. It is just with my app.</p>
  
  <p>How can I force returning to normal volume programatically ?</p>