官术网_书友最值得收藏!

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
主站蜘蛛池模板: 疏附县| 涞水县| 秦皇岛市| 汝阳县| 衡东县| 河间市| 伊吾县| 天镇县| 壤塘县| 连云港市| 宿松县| 龙岩市| 泾源县| 宝丰县| 济南市| 盱眙县| 永川市| 天门市| 东乌| 嘉峪关市| 昭觉县| 屏山县| 定州市| 东安县| 云安县| 河间市| 宣恩县| 巫溪县| 城市| 正阳县| 莱州市| 阆中市| 司法| 都兰县| 美姑县| 马龙县| 麻江县| 鹤庆县| 施甸县| 班玛县| 蓬溪县|