java.lang.IllegalStateException: Handler (android.media.MediaPlayer$EventHandler) {2d81fea} sending message to a Handler on a dead thread

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
via Stack Overflow by Mitodina

You can solve this by using an actual Service instead of an IntentService

,

Thrown to indicate that a method has been invoked at an illegal or inappropriate or wrong time. Try reobtaining message using Message.obtain method.

Solutions on the web

via GitHub by 2ndGAB
, 1 year ago
Handler (android.media.MediaPlayer$EventHandler) {2d81fea} sending message to a Handler on a dead thread
via replicant.us by Unknown author, 8 months ago
Handler (android.media.MediaPlayer$EventHandler) {e957809} sending message to a Handler on a dead thread
via GitHub by mzorz
, 9 months ago
Handler (android.media.MediaPlayer$EventHandler) {26f0d5e} sending message to a Handler on a dead thread
via Stack Overflow by JimCzek
, 1 year ago
Handler (android.media.MediaPlayer$EventHandler) {27bce352} sending message to a Handler on a dead thread
via xda-developers.com by Unknown author, 2 years ago
Handler (android.media.MediaPlayer$EventHandler) {b3ad199} sending message to a Handler on a dead thread
via GitHub by daniloercoli
, 1 year ago
Handler (android.media.MediaPlayer$EventHandler) {6d1e7b3} sending message to a Handler on a dead thread
java.lang.IllegalStateException: Handler (android.media.MediaPlayer$EventHandler) {2d81fea} sending message to a Handler on a dead thread
at android.os.MessageQueue.enqueueMessage(MessageQueue.java:543)
at android.os.Handler.enqueueMessage(Handler.java:631)
at android.os.Handler.sendMessageAtTime(Handler.java:600)
at android.os.Handler.sendMessageDelayed(Handler.java:570)
at android.os.Handler.sendMessage(Handler.java:507)

Users with the same issue

42 times, 1 week ago
16 times, 1 month ago
Once, 1 month ago
73 times, 3 months ago
26 times, 3 months ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.