title: mute and unmute the sound of my active application
body: <p>i build an app , and i want to mute and unmute just the sound of this app..
  i found this code to mute the sound:</p>
  
  <pre><code>    AudioManager aManager=(AudioManager)getSystemService(AUDIO_SERVICE);
      aManager.setStreamMute(AudioManager.STREAM_MUSIC, true);
  </code></pre>
  
  <p>It mutes all the sound of the device and disables the setting of the device to set the sound, not just the sound of the app..
  And i found this code to unmute the sound:</p>
  
  <pre><code>    AudioManager aManager=(AudioManager)getSystemService(AUDIO_SERVICE);
      aManager.setStreamMute(AudioManager.STREAM_MUSIC, false);
  </code></pre>
  
  <p>When i have muted the sound, and i clicked the button that contains this code, this code is not running and the sound setting of my device is still disabled..
  I just want to mute and unmute the sound of my app, not my device.. Any correction?</p>