How to end SDLActivity correctly
"Edition Chamäleon" <[email protected]> Wed, 14 Dec 2016 15:46:20 +0000
| Newsgroups | gmane.comp.lib.sdl |
|---|---|
| Message-ID | <[email protected]> |
Hello World, I'm trying to find a way to end my android App correctly, which is native and based on SDLActivity. Ending the hard way via homebutton always works. But now I want to implement an exitbutton in my app which enables the user to end it more elegant. So when the button has been triggered, I'm cleaning all up, killing all my singletons and leave my mainloop. Then I "return 0" out of "int main(int argc, char* argv[])". That's all on native side. The app ends seemingly. But when I press homebutton on my device, I can see that the app is still there on standby. [Shocked] If I try to open it, it crashes and there comes the black screen with "... has been stoped". And only then the app is really gone. This is not elegant. :? Can anyone help me ? Thanx in advance, Michael _______________________________________________ SDL mailing list [email protected] http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org