title: One Android MediaPlayer Object plays several sounds at once
body: <p>I have ONE object MediaPlayer mediaplayer. I use it to play different sounds, one after another.</p>
  
  <pre><code>mediaplayer = MediaPlayer.create(context, ResIdMusicONE);
  mediaplayer.start();
  
  // some user input
  
  mediaplayer.release();
  mediaplayer = null;
  
  // some other user input
  
  mediaplayer = MediaPlayer.create(context, ResIdMusicTWO);
  mediaplayer.start();
  
  // some user input
  
  mediaplayer.release();
  mediaplayer = null;
  </code></pre>
  
  <p>Sometimes is works fine. But sometimes the two sounds are played at the same time. And at positions, where mediaplayer should already have been released and be equal null.</p>
  
  <p>Thanks for the help.</p>