title: Android: MediaPlayer setVolume function not working
body: <p>I am trying to play sound via media player on STREAM_SYSTEM</p>
  
  <p>using </p>
  
  <pre><code>mediaPlayer.setVolume(1.0f , 1.0f);
  </code></pre>
  
  <p>or</p>
  
  <pre><code>mediaPlayer.setVolume(0.90f , 0.90f);
  </code></pre>
  
  <p>But it is playing on vol as per Hardware volume controls in settings.</p>
  
  <p>Basically this line has no effect.</p>
  
  <p>I have added </p>
  
  <pre><code>permissions "Modify..." as well in Manifest
  </code></pre>
  
  <p>But i saw links in stackoverflow where this API works.</p>
  
  <p>I don't wanna go to API</p>
  
  <pre><code>AudioManager.setStreamVol()....
  </code></pre>
  
  <p>as it sets stream vol for all apps</p>
  
  <p>What is problem that this setVol API is not working??</p>
  
  <p>Can anybody give a link to working sample??</p>