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

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.

主站蜘蛛池模板: 咸阳市| 南川市| 聂荣县| 藁城市| 侯马市| 宜君县| 茂名市| 横山县| 静安区| 武安市| 绿春县| 眉山市| 凉山| 台山市| 金秀| 利川市| 会宁县| 社旗县| 通渭县| 论坛| 龙川县| 瓮安县| 高雄县| 姜堰市| 梁山县| 林芝县| 临江市| 哈巴河县| 兰溪市| 阳朔县| 遂宁市| 花垣县| 海丰县| 增城市| 永安市| 淮安市| 南康市| 明溪县| 白银市| 东乡县| 华亭县|