The content of the adapter has changed but ListView did not receive a notification
2015-07-08 11:15
531 查看
在Android编程中使用Adapter时,偶尔会出现如下错误:
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。
看了网上好几个帖子
http://bbs.csdn.net/topics/390286824
http://www.eoeandroid.com/thread-79950-1-1.html
http://blog.csdn.net/garybook/article/details/7498342
http://gundumw100.iteye.com/blog/1738829
最直接有效的就是 从线程新获得的新数据先传到主线程,不要直接在子线程中为其赋值.
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。
看了网上好几个帖子
http://bbs.csdn.net/topics/390286824
http://www.eoeandroid.com/thread-79950-1-1.html
http://blog.csdn.net/garybook/article/details/7498342
http://gundumw100.iteye.com/blog/1738829
最直接有效的就是 从线程新获得的新数据先传到主线程,不要直接在子线程中为其赋值.
相关文章推荐
- WebLogic 将部署的项目删除之后,重启报错
- C++运算符重载的方法详细解析
- maven入门
- 第一级配置器 --—_ _malloc_alloc_template剖析
- Android Touch事件传递机制解析
- hrb 2134 素数
- MySQL中数据类型相关的优化办法
- 数据结构与算法—循环链表
- T-SQL查询处理执行顺序
- iOS 网络编程 XMPP编程
- springMVC上传文件
- 利用 BeanUtils 实现多表单间冗余数据同步管理
- c++运算符重载总结
- THE ELEMENTS OF C# STYLE
- 转载-好的简历
- date 命令
- Java操作百度身份证API
- 文章标题
- VMware虚拟机RedHat 5 系统下ftp服务器的安装测试
- FaceNet--Google的人脸识别