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

Chapter 4. Exploring the Loader

In the previous chapter we familiarized ourselves with the simplest and high level, Android-specific, asynchronous construct; the android.os.AsyncTask. The AsyncTask is a lean construct used to create background work that offers a simple interface to publish results and send progress to the main thread. In this chapter we are going to move our focus to android.content.Loader, a high level Android-specific pattern used to load content asynchronously from content providers or data sources over a worker thread with content change capabilities and component lifecycle awareness.

In this chapter we will cover the the following topics:

  • Introducing loaders
  • Loader API
  • Loader lifecycle
  • Loading data with Loader
  • Building responsive apps with AsyncTaskLoader
  • Building responsive apps with CursorLoader
  • Combining loaders
  • Applications of loaders
主站蜘蛛池模板: 中江县| 昔阳县| 若羌县| 冕宁县| 孝感市| 贵南县| 义乌市| 青海省| 襄汾县| 淄博市| 沙坪坝区| 建平县| 安陆市| 万年县| 山东省| 石狮市| 襄樊市| 华容县| 腾冲县| 文昌市| 余干县| 黄浦区| 宁夏| 屯留县| 门头沟区| 兴宁市| 桂阳县| 额尔古纳市| 梨树县| 新绛县| 钟山县| 来安县| 玛沁县| 兴安县| 曲周县| 察雅县| 沂水县| 竹北市| 赤壁市| 积石山| 甘肃省|