First of all, a very grateful thanks for creating this wonderful implementation. Since we use Cocos2D for iOS, it was a very obvious choice to use Cocos2D-x for Android.
We worked with the code migration from Objective C to C++ and it was very smooth … except for one irritation.
Problem: The problem that we face now is that on an Android device, the application will not quit (application does not end, it does not close but instead it keeps running) when the Home button is pressed. It happens on an Android tablet 2.2. There is only one button - the Home button. I have to reboot the tablet to end the application.
Even keeping an “x” image button (as given in HelloWorld program) inside the program screen (which calls sharedDirector::end() ) does not respond till touched 10 to 15 times, over 10 seconds. This can become an irritation for end users.
On an Android 2.3 phone, the app does not respond to a back button, Home button works by sending it to background. Back button works for quitting other apps but not Cocos2d-x app.
Cocos2d-x version is 1.0.1-x-0.9.1. We used templates etc supplied with that zip.
Any inputs would be helpful. Where should I look or make changes ?
Something like changelist 626 (http://www.cocos2d-x.org/issues/626) could be of use in this case, but that was for Marmalade. This problem we have is for Android.
Any help please ?