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

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.

主站蜘蛛池模板: 鄂尔多斯市| 江山市| 佛冈县| 灵川县| 甘孜| 德清县| 福贡县| 和静县| 南投市| 夏津县| 溧阳市| 黄浦区| 兰西县| 黄梅县| 株洲县| 德格县| 高州市| 沁阳市| 龙江县| 饶阳县| 饶阳县| 贡觉县| 铜鼓县| 浙江省| 大兴区| 平阳县| 双辽市| 黔西县| 海林市| 驻马店市| 嘉荫县| 铜川市| 阿城市| 玉溪市| 穆棱市| 新泰市| 达尔| 临海市| 得荣县| 马关县| 民权县|