Android Kill Process Restarting Application
===

I have a bit of a weird problem integrating a native game with a Java application in Android.

I have to add a native .so file for a game and wrap it with standard Activities to show a splash screen, a menu and some other stuff. 

I notice within the native code there appears to be a kill process call. I see this in the logcat.

> Fatal signal 11 (SIGSEGV) at 0x00000000 (code=1)

This happens when I hit an exit option in the native game. When this happens the application gets restarted i.e. the Activity set as launcher in the manifest get's created in a new process. 

Unfortunately I can't get the native source and can't get it changed. 

The best solution I have come up with so far is to do some kind of check in the onCreate and call finish if I think the app has been restarted. I really don't like the idea of doing that though, which is why I am posting here now. 

Does anybody have any suggestions on a "good" way to handle this? Any ripping apart my proposed solution is also welcome. 

I guess it's not a standard problem so the framework probably does not have much to help me here. Despite my many hours of reading docs and developing on Android I am still far form being an Android expert so any advice at all on this would be a great help.