The content of the adapter has changed but ListView did not receive a notification
java.lang.IllegalStateException: The content of the adapter has changed but ListView did not receive a notification. Make sure the content of your adapter is not modified from a background thread, but only from the UI thread. Make sure your adapter calls notifyDataSetChanged() when its content changes. [in ListView(, class android.widget.ListView) with Adapter(class com.tongyan.guangzhou.subway.inspect.act.table.TaskCheckMainAct$FacilityTaskCheckAdapter)]
at android.widget.ListView.layoutChildren(ListView.java:)
at android.widget.AbsListView.onTouchUp(AbsListView.java:)
at android.widget.HwAbsListView.onTouchUp(HwAbsListView.java:)
at android.widget.AbsListView.onTouchEvent(AbsListView.java:)
at android.view.View.dispatchTouchEvent(View.java:)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:)
at com.android.internal.policy.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java:)
at com.android.internal.policy.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:)
at android.app.Activity.dispatchTouchEvent(Activity.java:)
at com.android.internal.policy.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:)
at android.view.View.dispatchPointerEvent(View.java:)
at android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:)
at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:)
at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:)
at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:)
at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:)
at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:)
at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:)
at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:)
at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:)
at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:)
at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:)
at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:)
at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:)
at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:)
at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:)
at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:)
at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:)
at android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:)
at android.os.MessageQueue.nativePollOnce(Native Method)
at android.os.MessageQueue.next(MessageQueue.java:)
at android.os.Looper.loop(Looper.java:)
at android.app.ActivityThread.main(ActivityThread.java:)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:)
The content of the adapter has changed but ListView did not receive a notification的更多相关文章
- ListView:The content of the adapter has changed but ListView did not receive a notification终极解决方法
使用ListView时遇到如下的异常信息: 10-26 18:30:45.085: E/AndroidRuntime(7323): java.lang.IllegalStateException: T ...
- Android The content of the adapter has changed but ListView did not receive a notification
The content of the adapter has changed but ListView did not receive a notification. Make sure the co ...
- Android The content of the adapter has changed but ListView did not receive a notification终极解决方法
这几天做一个自动扫描SD卡上所有APK文件的小工具,扫描过程中会把APK添加到LISTVIEW中显示,结果出现以下错误:(有时候触摸更新数据时候,触摸listview也会报错) E/AndroidRu ...
- Android开发-- The content of the adapter has changed but ListView did not receive a notification - With AsyncTask
最近在联系开发DaysMatter时遇到一个问题: app中使用ListView来展示所有事件,每次添加完事件后使用下面代码来更新ListView. toDoListView.refreshDrawa ...
- java.lang.IllegalStateException: The content of the adapter has changed but ListView did not receive a notification
ListView UI重绘时触发layoutChildren, 此时会校验listView的mItemCount与其Adapter.getCount是否相同,不同报错. ListView.layout ...
- 问题解决:The content of the adapter has changed but ListView did not receive a notification
1. 不要在后台线程中直接调用adapter 2. 不要在后台线程中修改adapter绑定的数据 如果对adapter或者adapter绑定的数据是在线程中,加上runOnUiThread就可以了 r ...
- The content of the adapter has changed but ListView did not receive a notification. Make sure the content of your adapter is not modified from a background thread, but only from the UI thread. Make s
我出现这个问题是引用资源文件问题 helper.getView(R.id.in_pic).setBackgroundResource(item.getResourceId()); //错的helper ...
- android The content of the adapter has changed but ListView did not receive a notification 错误的解决方案
使用了AsyncTask在后台刷新适配器,并且通知ui线程更新ListView,运行时发现时不时的出现 如题 的错误, 导致程序崩溃,解决方法如下: 1.建立一个缓冲数据集,这个数据集就是填充适配器的 ...
- 【转】解决java.lang.IllegalStateException: The content of the adapter has changed but ListView...的问题
原文网址:http://blog.csdn.net/ueryueryuery/article/details/20607845 我写了一个Dialog,Dialog中有一个ListView,想要点Li ...
随机推荐
- C#获取参数getParameter
昨天遇到了这样一个问题,getParameter时,首次进入页面读取默认值时,本应该读取到“全部”这个字符. 然后在实际读取过程当中却不是这样,实际读取到的是 类的对象值 重新运行时能够读取到 “全 ...
- jQuery 源码中的 camelCase
先看一下源码 //65-72行 // Matches dashed string for camelizing //匹配连字符 ‘-’ 和其后的第一个字母或数字,如果是字母,则替换为大写,如果是数字, ...
- NPOI 操作Excel
关于NPOI NPOI是POI项目的.NET版本,是由@Tony Qu(http://tonyqus.cnblogs.com/)等大侠基于POI开发的,可以从http://npoi.codeplex. ...
- 记录一些容易忘记的属性 -- UINavigationController
//设置导航栏的风格 self.navigationController.navigationBar.barStyle = UIBarStyleDefault; //设置导航栏是否透明 N ...
- Python的平凡之路(5)
一.模块介绍 定义: 模块--用来从逻辑上组织python代码(变量,函数,类,逻辑:实现一个功能),本质就是.py结尾的python文件(文件名test.py,模块名test) 包—用来从逻辑上组织 ...
- 日常笔记 ---- 图形学-Frenel函数材质球实现方式
图形学-Frenel函数材质球实现方式 调个材质 大概公式 自发光= 自定义边光颜色* ((1-法线与视角方向点乘)的 自定义幂次方 ) 这个是比较简单方法 模型的法线与视角方向 角度越大 表 ...
- cortex-a8硬件基础练习
实验要求:定时通过串口打印adc,时间和温度,开关量检测和通过串口接收命令控制led小灯的动作 下面是整理的代码: #include "s5pc100.h"#include &qu ...
- HDU 1538
http://acm.hdu.edu.cn/showproblem.php?pid=1538 经典经济学问题,海盗分金 分析http://www.guokr.com/article/41423/ #i ...
- iOS-Gdata XML解析配置和简单使用
简单介绍使用废话少说直接上图就能看明白... 导入libxml2,使用第三方AFNetworking网络请求,第三方XML解析GData GData需要的配置 Build Settings 里搜索,添 ...
- 关于 xcode5 真机调试 的 no matching provisioning profiles found
产生原因:在xcode5里面不一定是因为你的真机证书有问题,有可能是因为,项目本来在别的组里有会出现此bug 如果你出现上图的错误,只需要在此项目的***.xcodeproj 文件,然后右键选择“显示 ...