Androir detect application force quit

Is there a way to detect when the user swipes the game in task manager to force it to quit? Right now my OnApplicationQuit() code does not run when this happens.

When your application process is “killed” via the OS, no more code from that program will run.

So, the only way to detect if the application has stopped is with ANOTHER “monitoring” program. This program can run in the background, and query the OS to see if the “monitored” process is still running or not.

However, this program will be running in a separate memory space and process, so it will NOT be able to do the same things you can do in OnApplicationQuit, like saving game-state data, for example.