How to detect if android app is force stopped or uninstalled? [closed]

There is no way to detect this on Android, sorry.

When a user or the system force stops your application, the entire process is simply killed. There is no callback made to inform you that this has happened.

When the user uninstalls the app, at first the process is killed, then your apk file and data directory are deleted, along with the records in Package Manager that tell other apps which intent filters you’ve registered for.

Leave a Comment