AsyncTaskLoader vs Asyncqueryhandler

Can someone tell me the difference between AsyncTaskLoader and AsyncQueryHandler?

I want to use AsynTaskLoader in my application. Existing in my application is AsyncQueryHandler ..

Am I right that AsyncTaskLoader is a replacement for AsyncQueryHandler?

Correct me if I am wrong .. I am very new to android.

+4
source share
2 answers

If you read the docs:

AsyncQueryHandler:

A helper class that helps simplify the processing of asynchronous ContentResolver requests.

AsyncTaskLoader:

An abstract loader that AsyncTask provides to do the job. See Loader and LoaderManager for more information.

, . AsyncQueryHandler / ContentResolver, AsyncTaskLoader - Loader ( API 11), AsyncTask (HTTP, SQL ..).

CursorLoader, , , .

, ContentResolver, CursorLoader, , .. ContentResolver, , AsyncQueryHandler.

+6

CursorLoader AsyncTaskLoader. LoaderManager CursorLoader async invoked query() ContentResolvers. ContentResolver - .

AsyncQueryHandler ContentResolver. , , , .

+1

All Articles