Android
android.media
public static interface

android.media.MediaPlayer.OnErrorListener

android.media.MediaPlayer.OnErrorListener

Interface definition of a callback to be invoked when there has been an error during an asynchronous operation (other errors will throw exceptions at method call time).

Summary

Public Methods

          boolean  onError(MediaPlayer mp, int what, int extra)
Called to indicate an error.

Details

Public Methods

public boolean onError(MediaPlayer mp, int what, int extra)

Called to indicate an error.

Parameters

mp the MediaPlayer the error pertains to
what the type of error that has occurred:
extra an extra code, specific to the error type

Returns

  • True if the method handled the error, false if it didn't. Returning false, or not having an OnErrorListener at all, will cause the OnCompletionListener to be called.
Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:48