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

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
主站蜘蛛池模板: 高淳县| 拉孜县| 巴青县| 汾西县| 南靖县| 依安县| 夹江县| 宁蒗| 锡林浩特市| 新郑市| 绥中县| 海南省| 江源县| 阳西县| 志丹县| 高州市| 奇台县| 林西县| 阿坝| 阳曲县| 铁力市| 阿拉善盟| 磐安县| 桐乡市| 涟水县| 辽宁省| 积石山| 固原市| 宜川县| 彭山县| 泽库县| 改则县| 白银市| 个旧市| 六枝特区| 广州市| 佳木斯市| 墨玉县| 罗田县| 逊克县| 富源县|