We provide complete mobile and web apps development solutions

Friday, February 8, 2013

Loaders in Android

Loaders providing Asynchronous loading data into an activity or fragment.When the data changes, it automatically update the new results.It automatically reconnect last loader when its recreated. So, no need to re query.

Starting the Loader:

we can initilize loader in onCreate() method.

getLoaderManager().initLoader(0,null, this);


initLoader takes the following parameters

unique id. In the above unique id is 0.
argument to supply to loader at construct (optional).
LoaderManager.LoaderCallbacks

LoaderManager calls to report loader events.

0 coment�rios:

Post a Comment

Online Training

Your Name :
Your Email: (required)
Your Message: (required)

Powered by Blogger.

Recent Posts

Find Us On Facebook

Popular Posts