androidandroid-cursorandroid-loadermanagerandroid-cursorloader

What does LoaderManager do?


I am trying to understand what does LoaderManager do. Can anyone share an example with it? Must I use them when I create a cursor? If not how should I use? A simple example is very appreciated.


Solution

  • Simply stated, the LoaderManager is responsible for managing one or more Loaders associated with an Activity or Fragment. Each Activity and each Fragment has exactly one LoaderManager instance that is in charge of starting, stopping, retaining, restarting, and destroying its Loaders.

    There is a pretty extensive and in-depth blog post on the LoaderManager... check it out here:

    Understanding the LoaderManager (part 2)