title: Android volume of a beep generated by ToneGenerator
body: <p>I am using the ToneGenarator in order to play a continuous beep.
  The problem is that the volume is far too low!</p>
  
  <p>We can't hear anything when the volume is lower than 8.
  And with the maximum volume, it is not loud at all...</p>
  
  <p>Is it a limitation of the <a href="http://developer.android.com/reference/android/media/ToneGenerator.html#TONE_DTMF_5" rel="nofollow">DTMF sound</a> or am I doing something wrong?</p>
  
  <p>Here is the code:</p>
  
  <pre><code>private final int TONE_TYPE = ToneGenerator.TONE_DTMF_5;
  private final int STREAM = AudioManager.STREAM_MUSIC;
  private final int DOT_TIME = 3;
  
  public SoundManager(Activity anActivity) {
      audio = (AudioManager) anActivity
              .getSystemService(Context.AUDIO_SERVICE);
      generator = new ToneGenerator(STREAM,
              audio.getStreamMaxVolume(STREAM));
  }
  
  private void playBeep() {
      generator.startTone(TONE_TYPE, DOT_TIME);
  }
  </code></pre>