本文很多资料基于Google Developer官方对AsyncTask的最新介绍. AsyncTask 是什么 AsyncTask is designed to be a helper class around Thread and Handler and does not constitute a generic threading framework. AsyncTasks should ideally be used for short operations (a few seconds…
HandlerThread是什么 官网介绍 A Thread that has a Looper. The Looper can then be used to create Handlers. Note that just like with a regular Thread, Thread.start() must still be called. 翻译: HandlerThread,持有一个可用来构建Handlers的Looper,像一个常规的线程类,必须要调用start()才能正常工作.…