 <p>You set the <code>android:onClick</code> in the xml attribute which will invoke your <code>next</code> method, and you <code>setOnClickListener</code> again in your <code>next</code>, so the first time you click the imageView, the <code>mp.start()</code> will not be invoked.</p> <pre><code>MediaPlayer mp = null; public void next (View view) { if (mp != null) { mp.stop(); mp.release(); } mp = MediaPlayer.create(this, R.raw.dry); mp.start(); } </code></pre>