public void onPrepared(MediaPlayer player){
  mState=State.PLAYING;
  updateNotification(String.format(getString(R.string.media_state_playing),mFile.getFileName()));
  if (mMediaController != null) {
    mMediaController.setEnabled(true);
  }
  player.seekTo(mStartPosition);
  configAndStartMediaPlayer();
  if (!mPlayOnPrepared) {
    processPauseRequest();
  }
  if (mMediaController != null) {
    mMediaController.updatePausePlay();
  }
}

public void onPrepared ( MediaPlayer player ) { mState = State . PLAYING ; updateNotification ( String . format ( getString ( R . string . media_state_playing ) , mFile . getFileName ( ) ) ) ; if ( mMediaController != null ) { mMediaController . setEnabled ( true ) ; } player . seekTo ( mStartPosition ) ; configAndStartMediaPlayer ( ) ; if ( ! mPlayOnPrepared ) { processPauseRequest ( ) ; } if ( mMediaController != null ) { mMediaController . updatePausePlay ( ) ; } }
called when media player is done preparing . time to start .
