Android Loader

Android Loader Life before Loaders Understanding the LoaderManager Implementing Loaders Android Loader This post gives a brief introduction to Loaders and the LoaderManager. The first section describes how data was loaded prior to the release of Android 3.0, pointing out out some of the flaws of the pre-Honeycomb APIs. The second section defines the purpose of each class and summarizes their powerful ability in asynchronously loading data. Life before Loaders Before Android 3.

Android Asynctask Pitfalls

I originally wrote this article when I was (foolishly) still using AsyncTasks. Nowadays I simply consider it a mistake in all cases. As you’ll see from the original article, there are a lot of problems with it - and there are much better solutions. My preferred alternative these days are combining RxJava with schedulers. You get the same effect as an AsyncTask with none of the problems, plus you get an awesome framework in addition.

Android Tips

* [Android Tips and Tricks](#overview) * [Part I](#part1) * [Part II](#part2) * [Part III](#part3) * [Part IV](#part4) * [Part V](#part5) Android Tips and Tricks Part I Activity.startActivities() - Nice for launching to the middle of an app flow. TextUtils.isEmpty() - Simple utility I use everywhere. Html.fromHtml() - Quick method for formatting Html. It’s not particularly fast so I wouldn’t use it constantly (e.g., don’t use it just to bold part of a string - construct the Spannable manually instead), but it’s fine for rendering text obtained from the web.