playin sound inside CountdownTimer doesnt stop
<p>i have this code for downtime counter :</p>

<pre><code>CountDownTimer CountdownTimer = new CountDownTimer(30000, 1000) {
     public void onTick(long millisUntilFinished) {
         txttime.setText( millisUntilFinished / 1000);
         play_sound();
     }

     public void onFinish(){
         timeout_stage(); //call an activity
     }
  }.start();
</code></pre>

<p>my problem is that when i call <code>CountdownTimer.cancel();</code> this two lines should stop:</p>

<pre><code>txttime.setText( millisUntilFinished / 1000);
play_sound();
</code></pre>

<p>but now, setting text to txttime stops but playing sound not!  why?</p>

<p>this is my play_sound();</p>

<pre><code>    public void play_sound(){
    MediaPlayer mp;
    mp = MediaPlayer.create(MainActivity.this, R.raw.success);
    mp.setOnCompletionListener(new OnCompletionListener() {
        public void onCompletion(MediaPlayer mp) {
            mp.release();
        }
    });
    mp.start();
}
</code></pre>
