Learn Android for Free,issues for developers, mobengineers website provide complete solutions for developers issues posts.It also provides online training for android development

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 calls to report loader events.

0 coment�rios:

Post a Comment

20% off

Online Training

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

NDTV Gadgets360

Powered by Blogger.

Recent Posts

Find Us On Facebook

Popular Posts