Play with this demo

In this Activity, you can :

Loader with progress.

This Activity uses a simple Loader but adds support to get Loader progress.

Progress and loaders

On this demo activity, you can observe the progress of the Loader's job. This hack is practical but not so clean. It has been supplied by the community as a workaround to loader limitations on Stack OverFlow Update progressbar from AsyncTaskLoader ?.

We should remember why loaders have been designed : optimizing data base access. This operation has no interest in the "progress information". Using them for other purposes is simply using the wrong tool to achieve it.


Next Activity provides an example of Loader usage to perform a REST request, we will demonstrate why Loaders don't fit when it comes to networking.