How to fix bjectException android X – Stack Overflow

Os android

Get via App Store Read this post in our app!

How to fix android.os.DeadObjectException android X

When android unbind a service I created (service.MyService), I see the following DeadObjectException.

Can you please tell me how what does this mean and can I fix this exception?

This means that your service had already stopped – either killed from the OS, or stopped from your application.

Does this problem happen every time you debug your project?

Override your service’s onDestroy() method and watch what event flow leads to it. If you catch DeadObjectException without going through this method, your service should have been killed by the OS.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.