title: Android SDK. audioManager. setStreamVolume max int value
body: <p>I'm in the process of developing an Android app.</p>
  
  <p>I have been able to successfully set the speaker volume using:</p>
  
  <pre><code>AudioManager audioManager = (Audiomanager)getSystemService(Context.AUDIO_SERVICE);
  
  audioManager.setStreamVolume(AudioManager.STREAM_MUSIC, sb2value, 0);
  </code></pre>
  
  <p>The question is, what's the max int value that "sb2value" can be?</p>
  
  <p>FYI, "sb2value" is a value from a slider. As the user slides, the audio volume is changed.</p>
  
  <p>I allow that slider value to go from 0 - 100. Can 100 be used as the second argument value or is the limit lower, such as 20?</p>
  
  <p>Thanks,</p>
  
  <p>P.S. Most of my questions look the same because I'm new, understand that each question needs a new post, and I have a lot of problems for a simple program.</p>