首页 / 浏览问题 / 移动GIS / 问题详情
imobile中,场景重进无法加载地球
81EXP 2019年08月01日

imobile开发中,realspace地球场景所在的activity,退出之后重进这个activity,为什么地球加载不出来了。

 @Override
    protected void onDestroy() {
        super.onDestroy();
        sceneControl.getScene().close();
//        sceneControl.getScene().dispose();
        EventBus.getDefault().unregister(MainActivity.this);
        this.finish();
    }

重新启动这个activity,地球显示不出来。

1个回答

您好,您有设置activity的启动模式吗?设置为android:launchMode="singleInstance"
9,127EXP 2019年08月01日
...