38 thoughts on “Threading and Loaders. (Android Performance Patterns Season 5, Ep. 8)

  1. You could write 200 lines of code to do something as trivial as threading using Loader's or you could write 4 lines of code which does something similar using RxJava!

  2. I think many of the solutions including rxJava or loaders tends to be very complicated. Especially when you want to be able to handle orientation changes. I think the far simplest way is to use IntentService with LocalBroadcastManager. What do you think about that? What are the advantages of using loaders instead of IntentService with LocalBroadcastManager?

  3. How does LoaderManager handle the orientation change? Does it call onStopLoading() and onStartLoading() ? As per my sample program, no Loader life cycle method was called. Does LoaderMnagaer caches the data delivered by the Loader and it calls the onLoadFinished() with the cached data?

  4. What if I use AsyncTask in a Fragment, having interface callbacks to the Activity. Will this cause memory leaks too during configuration changes?

  5. why is no one mentioning external libaries … udacity brought me here & they didnt put a single word on it …. I mean you dont boil the ocean just to cross it… when there is a boat standing by to enjoy the ride… they could have at least mentioned it…

  6. +Doug Stevenson can you please provide the latest link to the source code? looks like the link is not working anymore

  7. I would like to thank all developers in the comment section because i get to know so much info just by reading your comments. You guide me into my learning journey so thank you 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *