方法一:在AndroidManifest.xml中要跳转的目标Activity下添加
<activity
android:name=".LineExample"android:configChanges="orientation|screenSize" //这一行
>
此法亲测。
方法二:
添加代码:
@Override
public synchronized void onResumeGame() {
if (this.mEngine != null)
super.onResumeGame();
}
未测试,记录。