- Asynchronous Android Programming(Second Edition)
- Helder Vasconcelos
- 126字
- 2021-07-14 10:43:17
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
推薦閱讀
- Oracle Exadata性能優(yōu)化
- LabVIEW入門與實(shí)戰(zhàn)開發(fā)100例
- Visual Basic程序設(shè)計教程
- Dependency Injection in .NET Core 2.0
- 精通搜索分析
- Linux環(huán)境編程:從應(yīng)用到內(nèi)核
- PostgreSQL Replication(Second Edition)
- SQL Server從入門到精通(第3版)
- Android群英傳
- Go語言底層原理剖析
- Java編程從入門到精通
- Scrapy網(wǎng)絡(luò)爬蟲實(shí)戰(zhàn)
- JavaScript Unit Testing
- ASP.NET本質(zhì)論
- 算法訓(xùn)練營:海量圖解+競賽刷題(入門篇)