点击添加 打开三维
打开以后就成这样了 然后再点击打开离线场景 就直接崩溃了
case R.id.btnOpen:
m_workspace = new Workspace();
WorkspaceConnectionInfo info = new WorkspaceConnectionInfo();
info.setServer(sdcard + "/SampleData/GeometryInfo/World.smwu");
info.setType(WorkspaceType.SMWU);
m_workspace.open(info);
m_sceneControl = findViewById(R.id.sceneControl1);
m_scene = m_sceneControl.getScene();
m_scene.setWorkspace(m_workspace);
String sceneName = m_workspace.getScenes().get(1);
m_scene.open(sceneName);
m_scene.refresh();
break;
这个是打开离线场景的按钮里边打开三维的工作空间
E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.supermap.map, PID: 9963
java.lang.IllegalStateException: getScene()
at com.supermap.realspace.SceneControl.getScene(SceneControl.java:379)
at com.supermap.map.activity.ThreeDimensional.onClick(ThreeDimensional.java:87)
at android.view.View.performClick(View.java:7664)
at android.view.View.performClickInternal(View.java:7638)
at android.view.View.access$3800(View.java:878)
at android.view.View$PerformClick.run(View.java:29899)
at android.os.Handler.handleCallback(Handler.java:966)
at android.os.Handler.dispatchMessage(Handler.java:110)
at android.os.Looper.loopOnce(Looper.java:205)
at android.os.Looper.loop(Looper.java:293)
at android.app.ActivityThread.main(ActivityThread.java:9551)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:586)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1204)
这是错误