Last Updated: February 25, 2016
·
890
· bhaskar

Start loader on init when using Android support library

http://stackoverflow.com/a/8830747/1001491

When using the support library, AsyncTaskLoader does not start automatically.

To make it happen, override the onStartLoading() method:

@Override
protected void onStartLoading() {
  if(dataIsReady) {
    deliverResult(data);
  } else {
    forceLoad();
  }
}