English | Site Directory

Android - An Open Handset Alliance Project

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

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

Details

Public Methods

public void 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.
Build m5-rc15g - 14 May 2008 12:50