您的位置:首页 > 其它

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

最直接有效的就是  从线程新获得的新数据先传到主线程,不要直接在子线程中为其赋值.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: