报错异常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(2131034125, class cn.edu.pdsu.refresh.view.XListView) with Adapter(class android.widget.HeaderViewListAdapter)]
进行翻译:适配器的内容已经改变但列表视图没有收到通知。确保你的适配器不修改的内容从一个后台线程,但只有从UI线程。(在列表视图(2131034125,类cn.edu.pdsu.refresh.view.XListView)与适配器(类android.widget.HeaderViewListAdapter))
经过翻译很是清晰,就是说:适配器的内容已经改变但列表视图没有收到通知,
经过分析,就是在适配器的内容发生改变时进行 mAdapter.notifyDataSetChanged();操作
ok问题解决。