Renderings:
After modification:
Solution one:
1. Open the super.onPause(); commented out by default in cocos
2. Add this.setPreserveEGLContextOnPause(true);
Solution two:
Find the onPause() method of Cocos2dxActivity, and comment out the line in the red circle on the way.
Solution three:
1. Find the onPause() method of Cocos2dxActivity, click mGLSurfaceView.onPause(); method to enter;
2. Comment out mCocos2dxRenderer.setPauseInMainThread(true);
3. Click Cocos2dxGLSurfaceView.this.mCocos2dxRenderer.handleOnPause(); to enter
4. Comment out Cocos2dxRenderer.nativeOnPause(); can be solved
sample graph: