I have 2 buttons that both play an mp3. When the first song is playing I want a click of the second song to stop the first song, and start the song that was clicked. also if the first button is pressed twice the second press resets the song.

basically I don't want the songs to play on top of each other when multiple buttons are pressed.

```
@Override
public void onClick(View v) {
    switch (v.getId()) {
    case R.id.placeyouknow:
    String url = "http://www.katastro.com/audio/facts/01%20That%20Place%20You%20Know.mp3";
    mp = new MediaPlayer();

try {
    mp.setDataSource(url);
    mp.setAudioStreamType(AudioManager.STREAM_MUSIC);
    mp.prepare();
    mp.start();

    } catch (IllegalArgumentException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
    } catch (IllegalStateException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
    } catch (IOException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
    }

    case R.id.fallen:
    String url1 = "http://www.katastro.com/audio/fallen/01%20Fallen.mp3";
    mp = new MediaPlayer();

try {
    mp.setDataSource(url1);
    mp.setAudioStreamType(AudioManager.STREAM_MUSIC);
    mp.prepare();
    mp.start();

    } catch (IllegalArgumentException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
    } catch (IllegalStateException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
    } catch (IOException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();

```