title: Android Mediaplayer adjust volume
body: <p>Anyone know how can I increase/decrease the volume of the sound from mediaplayer by clicking on the volume button at the side of the phone? And how can I mute the sound if the phone was set to silent mode?</p>
  
  <p>Code I'm using:</p>
  
  <pre><code>mp = MediaPlayer.create(this, R.raw.sound);
  mp.start();
  </code></pre>