Android 在我的应用程序的listview中加载contats时出现问题

Android 在我的应用程序的listview中加载contats时出现问题,android,listview,cursor,Android,Listview,Cursor,我有一个游标,可以获取联系人中的所有值,我正在使用我的应用程序中的customadapter将该游标设置为listview。但是,如果联系人中有更多的值,则需要花费更多的时间进行更新,我的应用程序将崩溃,出现以下异常 java.lang.IllegalStateException: The content of the adapter has changed but ListView did not receive a notification. Make sure the content of

我有一个游标,可以获取联系人中的所有值,我正在使用我的应用程序中的customadapter将该游标设置为listview。但是,如果联系人中有更多的值,则需要花费更多的时间进行更新,我的应用程序将崩溃,出现以下异常

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 

有人能找出原因吗?

自定义适配器的基类是什么?CursorAdapter!使用CursorAdapter,如果使用SimpleCursorAdapter,可能不需要任何自定义CursorAdapter