异常日志: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.
工作中遇到的问题,listview在更细数据时,数据确实已经更新出来了,但是程序崩溃(非必崩),总结其原因在于更新listview时,在子线程得到网络数据后,将得到的网络数据发送到主线程,通知listview重绘时调用的notifydatasetchanged()方法时,以及一些UI方面的操作都要放到主线程中进行,这样可以保证数据和UI同时可以更新。