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.

Oauth 2.0

OAuth是一个关于授权(authorization)的开放网络标准,在全世界得到广泛应用,目前的版本是2.0版。本文对OAuth 2.0的设