Code example for MediaPlayer

Methods: pause

0
      goBlooey(t);
    } 
  } 
   
  private void pause() { 
    mp.pause();
     
    play.setEnabled(true);
    pause.setEnabled(false);
    stop.setEnabled(true);
  } 
   
  private void loadClip() { 
    try { 
      mp=MediaPlayer.create(this, R.raw.clip);
      mp.setOnCompletionListener(this);
    } 
    catch (Throwable t) {
      goBlooey(t);
    } 
  }