Start and Stop a MP3 File with Two Buttons - Possible?
<p>I have an mp3 file that I would like to start with one button but stop with another. Is this possible? Here is my code to start the file on button1 - How would I stop the file on button2?</p>

<p>Thank you!</p>

<pre><code>button1.setOnClickListener(new View.OnClickListener() {

    private MediaPlayer mplay;
    public void onClick(View v) {
    if (mplay == null){
       mplay = MediaPlayer.create(getApplicationContext(), R.raw.mysound);
       }
    mp.start();
    }             
 });
</code></pre>
