My app have an Exit button, that when clicked, after it is closed, show a message that the app has crashed.
The command i used is: openfl.system.System.exit(0);
It happens in a randon way (not always crash) and I notice that it crashes on Samsung devices (S7 and S8).
Is there a better way to close an android app?
Thanks.