- Asynchronous Android
- Steve Liles
- 258字
- 2021-07-21 17:51:44
What this book covers
Chapter 1, Building Responsive Android Applications, gives an overview of the Android process and thread model, and describes some of the challenges and benefits of concurrency in general, before discussing issues specific to Android.
Chapter 2, Staying Responsive with AsyncTask, covers the poster child of concurrent programming in Android. We learn how AsyncTask works, how to use it correctly, and how to avoid the common pitfalls that catch out even experienced developers.
Chapter 3, Distributing Work with Handler and HandlerThread, details the fundamental and related topics of Handler, HandlerThread, and Looper, and illustrates how they can be used to schedule tasks on the main thread, and to coordinate and communicate work between cooperating background threads.
Chapter 4, Asynchronous I/O with Loader, introduces the Loader framework and tackles the important task of loading data asynchronously to keep the user interface responsive and glitch free.
Chapter 5, Queuing Work with IntentService, gives us the means to perform background operations beyond the scope of a single Activity lifecycle and to ensure that our work is completed even if the user leaves the application.
Chapter 6, Long-running Tasks with Service, extends the capabilities we discovered with IntentService and gives us control over the level of concurrency applied to our long-running background tasks.
Chapter 7, Scheduling Work with AlarmManager, completes our toolkit by enabling us to arrange for work to be done far into the future and on repeating schedules. It also enables us to build apps that alert users to new content and start instantly with fresh data.
- SQL Server 2012數(shù)據(jù)庫技術(shù)及應(yīng)用(微課版·第5版)
- Java編程指南:基礎(chǔ)知識、類庫應(yīng)用及案例設(shè)計
- Apache Spark 2 for Beginners
- Mastering AndEngine Game Development
- Kinect for Windows SDK Programming Guide
- Building an RPG with Unity 2018
- Asynchronous Android Programming(Second Edition)
- 青少年信息學(xué)競賽
- Instant Lucene.NET
- Unity 2017 Mobile Game Development
- SSM開發(fā)實戰(zhàn)教程(Spring+Spring MVC+MyBatis)
- Photoshop CC移動UI設(shè)計案例教程(全彩慕課版·第2版)
- Redmine Cookbook
- Sitecore Cookbook for Developers
- 跟小樓老師學(xué)用Axure RP 9:玩轉(zhuǎn)產(chǎn)品原型設(shè)計