title: Android: how to play music at maximum possible volume?
body: <p>I know the question can be regarded as "politically incorrect", but I'm designing an app which "by design" must get the attention of people within the maximum possible distance range, otherwise it will not be used... :-)</p>
  
  <p>I'm currently using SoundManager class, and this is the code which plays my ogg clip:</p>
  
  <pre><code>public void playSound(int index) { 
       int streamVolume = mAudioManager.getStreamVolume(AudioManager.STREAM_MUSIC); 
       mSoundPool.play(mSoundPoolMap.get(index), streamVolume, streamVolume, 0, 0, 1.0f); 
  }
  </code></pre>
  
  <p>The problem is that the sound volume I get the clip played with appears to be dependent by "Settings/Audio/Voulme" settings the user has set. Instead it appears to be indipendent by the hardware volume buttons setting.</p>
  
  <p>Is there a way for an Android app to play a sound to the maximum physical volume allowed by the device?</p>