(Android) MediaPlayer errors [will update when find others]

java.lang.IllegalStateException in MediaPlayer.isplaying() - the internal player engine has not been initialized or has been released  make sure that you have initialized and/or have not released the player before trying to stop the music.

java.io.IOException: setDataSourceFD failed - seems like the music file is encoded in a strange format for MediaPlayer so just try converting it to OGG format. or you have too much music files and the device can't work them out, converting in a low memory using format save'd me.

IllegalStateException thrown while calling reset()
at android.media.MediaPlayer._reset(Native Method) - 
calling reset() after release() will throw an illegalstateexception, documentation says: When a MediaPlayer object is just created using new or after reset() is called, it is in the Idle state; and after release() is called, it is in the End state. Between these two states is the life cycle of the MediaPlayer object.

No comments:

Post a Comment