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

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.

主站蜘蛛池模板: 神农架林区| 泰兴市| 济阳县| 孟村| 屏东县| 裕民县| 思茅市| 武陟县| 曲阜市| 七台河市| 永年县| 峨边| 抚州市| 开鲁县| 阆中市| 长子县| 四川省| 汝州市| 靖州| 昌乐县| 三亚市| 凌源市| 哈密市| 靖安县| 金阳县| 探索| 虞城县| 邯郸市| 光泽县| 察隅县| 双桥区| 河曲县| 金山区| 耒阳市| 宜城市| 祁东县| 邵武市| 蒙阴县| 乐昌市| 井冈山市| 浦城县|