【Android策略】The content of the adapter has changed but ListView did not receive a notification
来源:互联网 发布:mui css js哪边下载 编辑:程序博客网 时间:2024/04/30 03:55
友盟错误详情:
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(2131427746, class android.widget.ListView) with Adapter(class com.storm.durian.a.be)]at android.widget.ListView.layoutChildren(ListView.java:1555)at android.widget.AbsListView$CheckForTap.run(AbsListView.java:3127)at android.os.Handler.handleCallback(Handler.java:733)at android.os.Handler.dispatchMessage(Handler.java:95)at android.os.Looper.loop(Looper.java:136)at android.app.ActivityThread.main(ActivityThread.java:5111)at java.lang.reflect.Method.invokeNative(Native Method)at java.lang.reflect.Method.invoke(Method.java:515)at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:609)at dalvik.system.NativeStart.main(Native Method)
notifyDataSetChanged()尽量在UI线程中操作,如果一定要在子线程中使用,请参考下面代码!
context.runOnUiThread(new Runnable() {public void run() {notifyDataSetChanged();}});
0 0
- 【Android策略】The content of the adapter has changed but ListView did not receive a notification
- Android - Bug: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异常: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.
- 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
- 解决bug: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
- 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
- .解决bug: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终极解决方法
- 处理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错误分析
- 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异常
- The content of the adapter has changed but ListView did not receive a notification终极解决方法
- Servlet 工程 web.xml 中的 servlet 和 servlet-mapping 标签
- poj2590-steps
- Android 之 内存管理
- HDOJ 2512-一卡通大冒险【组合数学】
- 目前最细致清晰的NSDictionary以及NSMutableDictionary用法总结
- 【Android策略】The content of the adapter has changed but ListView did not receive a notification
- 深入理解 C# 协变和逆变
- oracle笔记整理3——commit,rollback,flashback
- Android中的Universal-Image-Loader的使用
- 64位和32位系统编程
- 各个JSON技术的比较
- __weak __typeof(self)weakSelf = self和__strong __typeof(weakSelf)strongSelf = weakSelf
- MD5 Collision Generator(根据王小云教授的算法写的MD5碰撞的程序[c源代码])
- CRLF