Code example for MediaPlayer.OnCompletionListener

Methods: onCompletion

0
  public void onCompletion(MediaPlayer paramMediaPlayer)
  { 
    this.mCurrentState = 7;
    this.mStatusListener.completed();
    if (this.mOnCompletionListener != null)
      this.mOnCompletionListener.onCompletion(paramMediaPlayer);
    if (this.mCurrentState != 10)
      releaseWakeLock(); 
  } 
 
  public boolean onError(MediaPlayer paramMediaPlayer, int paramInt1, int paramInt2)
  { 
    this.mCurrentState = 8;
    this.mStatusListener.error();
    if (this.mOnErrorListener != null);
    for (boolean bool = this.mOnErrorListener.onError(paramMediaPlayer, paramInt1, paramInt2); ; bool = false)
      return bool;
  } 
 
  public void onPrepared(MediaPlayer paramMediaPlayer)
Stop searching for code, let great code find you!  Add Codota to your java IDE