Loaders provide a framework for the asynchronous loading of data.
They are registered by id in the loaderManager. The loader Id has to be unique for all loader used in the activity.
Loader asynchronously load data, see the Loaders guide.
AsyncTaskLoader is a Loader that uses an AsyncTask behind the scenes to do its work.
You can use:
From the UI = From the activity
Android 2.3 compatibility with the below imports. android.support.v4. is used to write apps that run on platforms prior to Android 3.0.
import android.support.v4.app.Fragment;
import android.support.v4.app.LoaderManager;
import android.support.v4.content.Loader;
import android.support.v4.content.CursorLoader;