AsyncTaskLoader vs AsyncTask

You can have a look at the compatibility library’s source code to get more info. What a FragmentActivity does is: keep a list of LoaderManager‘s make sure they don’t get destroyed when you flip your phone (or another configuration change occurs) by saving instances using onRetainNonConfigurationInstance() kick the right loader when you call initLoader() in … Read more

Difference between initLoader and restartLoader in LoaderManager

To answer this question you need to dig into the LoaderManager code. While the documentation for LoaderManager itself isn’t clear enough (or there wouldn’t be this question), the documentation for LoaderManagerImpl, a subclass of the abstract LoaderManager, is much more enlightening. initLoader Call to initialize a particular ID with a Loader. If this ID already … Read more