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.
I am trying to understand what does LoaderManager do. Can anyone share an example
Share
Simply stated, the
LoaderManageris responsible for managing one or moreLoaders associated with anActivityorFragment. EachActivityand eachFragmenthas exactly oneLoaderManagerinstance that is in charge of starting, stopping, retaining, restarting, and destroying itsLoaders.There is a pretty extensive and in-depth blog post on the
LoaderManager… check it out here:Understanding the LoaderManager (part 2)