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 ...
随机推荐
- github 使用教程初级版
github 是一个基于 git 的代码托管平台,付费用户可以建私人仓库,免费用户只能使用公共仓库.对于一般人来说公共仓库就已经足够了,而且也没多少代码来管理.下面简单介绍如何使用 github,供初 ...
- qq快速聊天
和女朋友聊天的时候,每次发完消息我都习惯性把聊天界面关了,或者我想找女朋友聊天了,又要打开主界面再打开聊天窗口 每次感觉特别麻烦.所以我在想有没有一个好的办法直接打开聊天窗口的.刚好这两天又在写jav ...
- Redis应用场景(转)
(来源:http://www.cnblogs.com/shanyou/archive/2012/09/04/2670972.html) Redis常用数据类型 Redis最为常用的数据类型主要有以下五 ...
- Android - 定时服务 - Timer
注:在项目中,有时可能会有一些定时执行的任务,这时,一般都会在一个service中写一个定时器. 例: Service类: import java.util.Timer; import java.ut ...
- 软件项目第一个Sprint评论
团队软件评论: 极速蜗牛:个人认为,内部测试版应该是实现内容而不是UI界面,难道要让那些懂电脑的人们都去玩用户界面吗?UI界面完全可以放到beta版再进行修改,美工.不过这界面做的确实还可以.运行此游 ...
- 从零开始学习Node.js例子六 EventEmitter发送和接收事件
pulser.js /* EventEmitter发送和接收事件 HTTPServer和HTTPClient类,它们都继承自EventEmitter EventEmitter被定义在Node的事件(e ...
- 官网服务质量检测脚本(源码来自《Python自动化运维实战》第二版刘天斯)
脚本Python版本2.7 #!/usr/bin/python #-*- coding:utf-8 -*- import os,sys import time import sys import py ...
- Android 学习第2课,下载 eclipse 工具
可以到http://www.ddooo.com/softdown/61745.htm 下载下来是32位与64位都有的 而且是汉化的,经测试成功,还可以,不错!
- php建立MySQL数据表
<?php $connect = mysql_connect("127.0.0.1","root",""); mysql_select ...
- 转 UML类图几种关系的总结
UML类图几种关系的总结 在UML类图中,常见的有以下几种关系: 泛化(Generalization), 实现(Realization),关联(Association),聚合(Aggregati ...