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 ...
随机推荐
- MySQL操作汇总[转]
这学期学习了数据库系统原理,做了实验,mark一记. 目录(没有一键目录不开心...) 1.T—SQL的简单查询.连接查询 (1)用SQL语句建库.建表并插入记录. (2)修改表结构,包括修改属性 ...
- Swift 02.Array
数组可以存放任意类型,初始化时候的类型 决定了数组后面可以添加什么类型的元素 let 不可变数组 let arrayC = [,,,,,,] var 可变数组 var arrayM = [,,,,,, ...
- set集合类型
set表示一个集合,相当于C#中的Hashtable,不同的地方在于,所有的值共用一个key. 相关操作如下图.
- iOS开发UI篇—使用xib自定义UItableviewcell实现一个简单的团购应用界面布局
iOS开发UI篇—使用xib自定义UItableviewcell实现一个简单的团购应用界面布局 一.项目文件结构和plist文件 二.实现效果 三.代码示例 1.没有使用配套的类,而是直接使用xib文 ...
- .net中大数据的处理
前提:sqlserver数据库 问题:需要从数据量达千万级或是更大的数据库中找出一条需要的数据. 1,先分析大数据的结构,以及数据的流向.以及此过程中那些地方会有瓶颈. 2,针对瓶颈制定方案: 1.1 ...
- asp.net还原备份数据库(C#)
因为做项目的时候用到对数据库的还原和备份,第一次接触,所以上网查了关于这方面的资料,网络果然是个好东西,该有的都有了,这里我就把原文中的代码直接粘贴过来了. using System; using S ...
- Swift学习
Swift 中文教程(一)基础数据类型 基础类型 虽然Swift是一个为开发iOS和OS X app设计的全新编程语言,但是Swift的很多特性还是跟和Objective-C相似. Swift也提供了 ...
- GitHub Pages 搭建流程-基于jekyll-bootstrap
我写这篇文章的目的是记录本博客的搭建过程,自己从零开始逐步搭建起来了GitHub Pages,其中借鉴了很多的博客和模版,稍后会在后面列出,也为没有用过gihub和jekyll的童鞋提供一点帮助. 学 ...
- 关于javascript中的===和==
=是赋值符号,==是等于,===是严格等于. 对于等号两边的数值,如果类型不相同会先转换类型再比较,===则不会转换类型. 例如3和“3”在==比较下true,在===下是false, null和un ...
- Spark随笔(三):straggler的产生原因
首先,介绍前辈研究的基于MapReduce框架的outlier产生原因:其次,根据这些方面来分析Spark架构中的straggler:最后,根据阅览的优化办法,谈谈自己的看法. 一.MapReduce ...