Android 应用程序状态类E/SysUtils﹕;ApplicationStatus中的ApplicationContext为null
我不时在LogCat中收到此错误: E/SysUtils﹕ ApplicationStatus中的ApplicationContext为null 有人知道ApplicationStatus类吗?我的项目中没有它Android 应用程序状态类E/SysUtils﹕;ApplicationStatus中的ApplicationContext为null,android,opengl-es,renderer,Android,Opengl Es,Renderer,我不时在LogCat中收到此错误: E/SysUtils﹕ ApplicationStatus中的ApplicationContext为null 有人知道ApplicationStatus类吗?我的项目中没有它 它发生在我在openGL中快速渲染纹理时在我的例子中,我设法解决了这个问题。当我将参数传递给intent时,我得到了一个NullPointerException 我的问题是在打开一个新的意图时直接传递额外的变量,如下所示 调用代码: intent.putExtr
它发生在我在openGL中快速渲染纹理时在我的例子中,我设法解决了这个问题。当我将参数传递给intent时,我得到了一个NullPointerException 我的问题是在打开一个新的意图时直接传递额外的变量,如下所示
- 调用代码:
intent.putExtra("markerdata: ", assetVO);
Bundle b = new Bundle(); b.putSerializable("markerdata", assetVO); intent.putExtras(b);
- 接收代码:
markerdata = (HashMap<String, Object>) getIntent().getSerializableExtra("markerdata");
Bundle extras = getIntent().getExtras(); markerdata = (HashMap<String, Object>) extras.getSerializable("markerdata");
- 接收代码:
markerdata = (HashMap<String, Object>) getIntent().getSerializableExtra("markerdata");
Bundle extras = getIntent().getExtras(); markerdata = (HashMap<String, Object>) extras.getSerializable("markerdata");
Bundle extras=getIntent().getExtras(); markerdata=(HashMap)extras.getSerializable(“markerdata”);
现在它开始工作了。希望它能帮助其他人。获得了相同的错误信息。我还没弄明白。