- Asynchronous Android
- Steve Liles
- 86字
- 2021-07-21 17:51:46
Chapter 2. Staying Responsive with AsyncTask
The first Android-specific concurrency construct we'll look at is android.os.AsyncTask
, a neat construct that encapsulates the messy business of managing threads, performing background work, and publishing progress and results back to the main thread to update the user interface.
In this chapter we will cover the following topics:
- Introducing
AsyncTask
- Declaring
AsyncTask
types - Executing AsyncTasks
- Providing feedback to the user
- Providing progress updates
- Canceling AsyncTasks
- Handling exceptions
- Controlling the level of concurrency
- Common
AsyncTask
issues - Applications of
AsyncTask
推薦閱讀
- C++程序設計教程
- C#程序設計實訓指導書
- Redis入門指南(第3版)
- 老“碼”識途
- Python高效開發實戰:Django、Tornado、Flask、Twisted(第3版)
- Big Data Analytics
- Scala程序員面試算法寶典
- Procedural Content Generation for C++ Game Development
- MySQL 8從零開始學(視頻教學版)
- Secret Recipes of the Python Ninja
- Python程序設計教程
- Maven for Eclipse
- Android嵌入式系統程序開發(基于Cortex-A8)
- Visual C++實用教程
- R語言