下面先主要学习一下android.content.AsyncQueryHandler这个类
简单介绍:
A helper class to help make handling asynchronous ContentResolver
queries easier.
它是一个帮助处理异步ContentResolver查询的帮助类。它继承于Handler。
它的构造函数:
public AsyncQueryHandler (ContentResolver cr)
很清楚只要只要扔一个ContentResolver的对象进去就可以了。
它提供的一些方法有:startDelete,startQuery,startUpdate,startInsert,还有一些对应的回调函数onDeleteComplete,onQueryComplete,onUpdateComplete,onInsertComplete.