1. notifyDataSetChanged方法必须在UI线程调用,若在子线程调用会抛:”CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views.“异常。
2. 当adapter中的数据被更改后必须马上调用notifyDataSetChanged予以更新。若没有调用,当用户点击listitem时,会抛出”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.“异常。