How to kill Cocos2d-x test app
问题 We are creating an SDK that is used in Cocos2d-x games (on Android/iOS). As part of development, we have setup a test framework for running various tests on a real device (Android only at the moment). One specific test needs to kill the app and launch it again. It seems that Cocos2d-x does not provide any API for exiting (or killing) the running app. Some online resources suggested that people have used the call to exit(0) . Is there any way to exit the game from Cocos2d-x ? Calling exit(0)