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.
Simply stated, the LoaderManager
is responsible for managing one or more Loader
s 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 Loader
s.
There is a pretty extensive and in-depth blog post on the LoaderManager
... check it out here: