Asynchronous Android Programming, 2nd Edition

0
(0)

Asynchronous Android Programming, 2nd Edition
 

  • Author:Helder Vasconcelos
  • Length: 394 pages
  • Edition: 2nd Revised edition
  • Publisher: Packt Publishing
  • Publication Date: 2016-07-29
  • ISBN-10: 1785883240
  • ISBN-13: 9781785883248
  • Sales Rank: #5916144 (See Top 100 Books)
  • Download:Register/Login to Download
  • Buy Print:Buy from amazon


    Book Description

    About This Book

    • Construct scalable and performant applications to take advantage of multi-thread asynchronous techniques
    • Explore the high-level Android asynchronous constructs available on the Android SDK
    • Choose the most appropriate asynchronous technique to implement your next outstanding feature

    Who This Book Is For

    This book is for Android developers who want to learn how to build multithreaded and reliable Android applications using high-level and advanced asynchronous techniques and concepts.

    What You Will Learn

    • Get familiar with the Android process model and low-level concurrent and multithread constructs available on the Android SDK
    • Use AsyncTask to load data in the background, delivering progress results in the meantime
    • Enhance UI performance and responsiveness by sending work to a service running in the background
    • Defer, schedule, and batch work on the Android system without compromising the battery life and user experience
    • Use the JNI interface to execute concurrent work on native layer
    • Pull and push data from your network servers using the Google GCM platform
    • Create and compose tasks with RxJava to execute complex asynchronous work in a predictable way
    • Get accustomed to the use of the Android Loader construct to deliver up-to-date results

    In Detail

    Asynchronous programming has acquired immense importance in Android programming, especially when we want to make use of the number of independent processing units (cores) available on the most recent Android devices. To start with, we will discuss the details of the Android process model and the Java low-level concurrent framework, delivered by the Android SDK. Next, we will discuss the creation of IntentServices, bound services, and external services, which can run in the background even when the user is not interacting with them. In a more advanced phase, you will create background tasks that are able to execute CPU-intensive tasks in native code–making use of the Android NDK.

    You will be then guided through the process of interacting with remote services asynchronously using the HTTP protocol or Google GCM Platform. Finally, we will introduce RxJava, a popular asynchronous Java framework used to compose work in a concise and reactive way.

    Table of Contents

    Chapter 1: Asynchronous Programming in Android
    Chapter 2: Performing Work with Looper, Handler, and HandlerThread
    Chapter 3: Exploring the AsyncTask
    Chapter 4: Exploring the Loader
    Chapter 5: Interacting with Services
    Chapter 6: Scheduling Work with AlarmManager
    Chapter 7: Exploring the JobScheduler API
    Chapter 8: Interacting with the Network
    Chapter 9: Asynchronous Work on the Native Layer
    Chapter 10: Network Interactions with GCM
    Chapter 11: Exploring Bus-based Communications
    Chapter 12: Asynchronous Programing with RxJava

    中文:

    书名:Asynchronous Android Programming, 2nd Edition

    关于本书

    • 构建可伸缩且高性能的应用程序,以利用多线程异步技术
    • 探索Android SDK上可用的高级Android异步构造
    • Choose the most appropriate asynchronous technique to implement your next outstanding feature

    这本书是为谁写的

    这本书是为想要学习如何使用高级和高级的异步技术和概念构建多线程和可靠的Android应用程序的Android开发人员编写的。

    你将学到什么

    • 熟悉Android进程模型以及Android SDK上提供的低级并发和多线程结构
    • 使用AsyncTask在后台加载数据,同时提供进度结果
    • 通过将工作发送到在后台运行的服务来增强用户界面性能和响应能力
    • 在不影响电池寿命和用户体验的情况下,在Android系统上延迟、调度和批处理工作
    • Use the JNI interface to execute concurrent work on native layer
    • 使用Google GCM平台从您的网络服务器拉取和推送数据
    • 使用RxJava创建和组成任务,以可预测的方式执行复杂的异步工作
    • 习惯使用Android Loader构造来提供最新的结果

    In Detail

    异步编程已经在Android编程中获得了巨大的重要性,特别是当我们想要利用最新Android设备上可用的独立处理单元(内核)的数量时。首先,我们将讨论Android进程模型和由Android SDK提供的Java低级并发框架的细节。接下来,我们将讨论IntenServices、绑定服务和外部服务的创建,这些服务即使在用户不与其交互时也可以在后台运行。在更高级的阶段中,您将使用Android NDK创建能够在本机代码中执行CPU密集型任务的后台任务。

    然后将引导您完成使用HTTP协议或Google GCM平台与远程服务进行异步交互的过程。最后,我们将介绍RxJava,这是一个流行的异步Java框架,用于以简洁和被动的方式编写工作。

    目录表

    第1章:Android中的异步编程
    第2章:使用循环、处理程序和处理程序线程执行工作
    Chapter 3: Exploring the AsyncTask
    第4章:探索装载机
    Chapter 5: Interacting with Services
    第6章:使用AlarmManager安排工作
    Chapter 7: Exploring the JobScheduler API
    Chapter 8: Interacting with the Network
    第9章:原生层上的异步工作
    Chapter 10: Network Interactions with GCM
    第11章:探索基于公交车的通信
    第12章:使用RxJava进行异步编程

  • 下载电子版:下载地址
  • 购买纸质版:亚马逊商城

    点击星号评分!

    平均分 0 / 5. 投票数: 0

    还没有投票!请为他投一票。

  • 推荐阅读

    评论 抢沙发

    评论前必须登录!

     

    登录

    找回密码

    注册