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();
}
}
Written by Bhaskar Murthy
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Android
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#