# Print output for @column tags ?>
Developers

- Design
- Develop
- Distribute

Developer Console

## Most visited

## Recently visited

## Results for

# MediaPlayer.OnErrorListener

`public static interface 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
`abstract boolean` | `onError(MediaPlayer mp, int what, int extra)` Called to indicate an error.

## Public methods

### onError

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

Called to indicate an error.

Parameters
`mp` | `MediaPlayer`: the MediaPlayer the error pertains to
`what` | `int`: the type of error that has occurred: `MediaPlayer.MEDIA_ERROR_UNKNOWN` `MediaPlayer.MEDIA_ERROR_SERVER_DIED`
`extra` | `int`: an extra code, specific to the error. Typically implementation dependent. `MediaPlayer.MEDIA_ERROR_IO` `MediaPlayer.MEDIA_ERROR_MALFORMED` `MediaPlayer.MEDIA_ERROR_UNSUPPORTED` `MediaPlayer.MEDIA_ERROR_TIMED_OUT` `MEDIA_ERROR_SYSTEM (-2147483648)` - low-level system error.

Returns
`boolean` | 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.

Full name *
Email address *
Company / developer name
One of your Play Store app URLs *
Which best describes your business:*
Apps
Games
Apps & Games
*
*