When i pressed the bt2 the system freez
<p>When i press bt on the Player plays the song in a loop like normal. But when i pressed bt2 (Stop Button) the System Freez!</p>

<p>Main Class:</p>

<pre><code>        final Alarm alarm = new Alarm();
    bt.setOnClickListener(new OnClickListener() {

        @Override
        public void onClick(View v) {
             Alarm alarm = new Alarm();
                new MediaPlayer();
                MediaPlayer mp = MediaPlayer.create(ParkTicketAlarm.this, R.raw.alarm);
                 Vibrator vi = (Vibrator) getSystemService(Context.VIBRATOR_SERVICE); 
                 alarm.execute(mp);


        }
    });

  bt2.setOnClickListener(new OnClickListener() {

    @Override
    public void onClick(View v) {
        alarm.turnoff();

    }
})
</code></pre>

<p>AsyncTask Class:</p>

<pre><code>    MediaPlayer mp;
@Override
protected String doInBackground(MediaPlayer... params) {
    mp = (MediaPlayer)params[0];
        mp.setLooping(true);
        mp.start();
        return null;
}
void turnoff()
{
    mp.reset();
    Toast toast = new Toast(null);
    toast.setText("go");
    toast.show();
}
</code></pre>
