I work on an app that using cocos2dx as a part of it. I start an activity extending Cocos2DXActivity from a regular activity, what should I do to return from Cocos2DXActivity to the previous activity? I have tried to end CCDirector but not work, and I call from JNI to finish Cocos2DXActivity but it seems that Cocos2DX resources do not destroy, it just enter background.
How does CCDirector->end() method affect the Android lifecycle?
Why it should call terminateProcess() in CCEGLView->end()?