* <p>AsyncTask enables proper and easy use of the UI thread. This class allows you
* to perform background operations and publish results on the UI thread without
* having to manipulate threads and/or handlers.</p>
*
* <p>AsyncTask is designed to be a helper class around {@link Thread} and {@link Handler}
* and does not constitute a generic threading framework. AsyncTasks should ideally be
* used for short operations (a few seconds at the most.) If you need to keep threads
* running for long periods of time, it is highly recommended you use the various APIs
* provided by the <code>java.util.concurrent</code> package such as {@link Executor},
* {@link ThreadPoolExecutor} and {@link FutureTask}.</p>
</
AsyncTask的解释由于目前的Android已经不允许在UI线程中进行网络请求了,所以现在进行网络请求等较为耗时的操作都需要开辟新的线程来运行。否则有可能会造成ANR错误。而Asynctask便是解决这个问题的一种方法。在源码中注释对AsyncTask类进行这样的解释 * &lt;p&gt;AsyncTask enables proper and easy use of the UI...