java.lang.IllegalStateException: The content of the adapter has changed but
来源:互联网 发布:慧思达软件多少钱 编辑:程序博客网 时间:2024/06/05 08:57
发现一个有时候会出现的错误:
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. [in ListView(2131165196, class android.widget.ListView) with Adapter(class com.jovision.multiscreen.views.DeviceScanSelectDialog$DeviceAdapter)
需要data.addAll,Adapter.notifyDataSetChanged()在主线程执行,
data.addAll(data_update);
if (data_update_size<20){
mListView.setPullLoadEnable(false);
}else{
mListView.setPullLoadEnable(true);
}
onLoad();
if (data_update_size<20){
mListView.setPullLoadEnable(false);
}else{
mListView.setPullLoadEnable(true);
}
onLoad();
mAlertAdapter.notifyDataSetChanged();
0 0
- java.lang.IllegalStateException: The content of the adapter has changed but ListView did not receive
- java.lang.IllegalStateException: The content of the adapter has changed but ListView did not receive
- java.lang.IllegalStateException: The content of the adapter has changed but
- 解决java.lang.IllegalStateException: The content of the adapter has changed but ListView...的问题
- java.lang.IllegalStateException: The content of the adapter has changed but ListView did not receive
- java.lang.IllegalStateException: The content of the adapter has changed but ListView did not receive
- java.lang.IllegalStateException: The content of the adapter has changed but ListView did not receiv
- java.lang.IllegalStateException: The content of the adapter has changed but ListView did not receive
- java.lang.IllegalStateException: The content of the adapter has changed but ListView...的问题
- java.lang.IllegalStateException: The content of the adapter has changed but ListView did not receiv
- java.lang.IllegalStateException: The content of the adapter has changed but
- java.lang.IllegalStateException: The content of the adapter has changed but ListView..
- java.lang.IllegalStateException: The content of the adapter has changed but ListView did not receive
- 解决java.lang.IllegalStateException: The content of the adapter has changed but ListView...的问题
- 解决java.lang.IllegalStateException: The content of the adapter has changed but ListView...的问题
- java.lang.IllegalStateException: The content of the adapter has changed but
- java.lang.IllegalStateException: The content of the adapter has changed but ListView did not receive
- java.lang.IllegalStateException: The content of the adapter has changed but ListView did not receive
- 89个windows常用API调用
- SpringMVC_json数据交互笔记
- 第14周项目1.1验证算法
- Hashtable和HashMap的区别
- HMM学习笔记2
- java.lang.IllegalStateException: The content of the adapter has changed but
- 关于lnmp如何删除.user.ini文件
- MySQL插入百万条测试数据
- ProgressBar颜色设定及绘制文字显示
- [Leetcode] 4Sum
- 利用原生Js方法实现发送验证码倒计时
- <精灵萌宠总动>隐私政策
- Android 验证码倒计时
- 类别,属性,成员变量,arc学习总结