AsyncTask just makes it easier to do both of these things.
AsyncTask类只是把上面的两件事情变得简单了。
With AsyncTask, you can really simplify multithreaded code.
有了AsyncTask,您就完全可以简化多线程代码。
Naturally, the easiest way to avoid this situation is to use AsyncTask.
当然,避免这种情况最好的办法是使用 AsyncTask。
AsyncTask allows you to perform asynchronous work on your user interface.
异步任务AsyncTask允许以异步的方式对用户界面进行操作。
For example, you can implement the previous example using AsyncTask this way.
例如,可以利用AsyncTask来实现上面的那个例子。