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

Summary

In this chapter, we've taken a detailed look at AsyncTask and how to use it to write responsive applications that perform operations without blocking the main thread.

We saw how to keep users informed of the progress, and even allow them to cancel operations early. We also learned how to deal with issues that can arise when the Activity lifecycle conspires against our background tasks.

Finally, we considered when to use AsyncTask, and when it might not be appropriate.

In the next chapter we'll learn about Loader—a construct designed to streamline the asynchronous loading of data on the Android platform.

主站蜘蛛池模板: 民乐县| 临沭县| 呼和浩特市| 德昌县| 茶陵县| 巴中市| 勃利县| 淳化县| 鹰潭市| 咸丰县| SHOW| 安远县| 蓬安县| 石景山区| 开鲁县| 洪雅县| 五家渠市| 仪征市| 南川市| 曲松县| 莎车县| 克什克腾旗| 北票市| 麻城市| 林西县| 班戈县| 娱乐| 壶关县| 布尔津县| 莎车县| 北碚区| 万源市| 达拉特旗| 神池县| 沿河| 灵寿县| 台南市| 邵阳县| 曲沃县| 钟祥市| 山阳县|