Asynchronous Android Programming
暫譯: 非同步 Android 程式設計
Helder Vasconcelos
- 出版商: Packt Publishing
- 出版日期: 2016-07-29
- 售價: $2,220
- 貴賓價: 9.5 折 $2,109
- 語言: 英文
- 頁數: 394
- 裝訂: Paperback
- ISBN: 1785883240
- ISBN-13: 9781785883248
-
相關分類:
Android
海外代購書籍(需單獨結帳)
商品描述
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.
商品描述(中文翻譯)
關於本書
- 建構可擴展且高效能的應用程式,以利用多執行緒非同步技術
- 探索在 Android SDK 上可用的高階 Android 非同步結構
- 選擇最合適的非同步技術來實現您下一個卓越的功能
本書適合誰
本書適合希望學習如何使用高階和進階非同步技術及概念來構建多執行緒和可靠的 Android 應用程式的 Android 開發者。
您將學到什麼
- 熟悉 Android 的進程模型以及 Android SDK 上可用的低階併發和多執行緒結構
- 使用 AsyncTask 在背景中加載數據,同時提供進度結果
- 通過將工作發送到在背景中運行的服務來增強 UI 的性能和響應能力
- 在不妨礙電池壽命和用戶體驗的情況下,延遲、排程和批量處理 Android 系統上的工作
- 使用 JNI 介面在本地層執行併發工作
- 使用 Google GCM 平台從您的網絡伺服器拉取和推送數據
- 使用 RxJava 創建和組合任務,以可預測的方式執行複雜的非同步工作
- 熟悉使用 Android Loader 結構來提供最新的結果
詳細內容
非同步編程在 Android 編程中變得極為重要,特別是當我們希望利用最新 Android 設備上可用的獨立處理單元(核心)時。首先,我們將討論 Android 進程模型的細節以及由 Android SDK 提供的 Java 低階併發框架。接下來,我們將討論 IntentServices、綁定服務和外部服務的創建,這些服務即使在用戶不與其互動時也能在背景中運行。在更進階的階段,您將創建能夠在本地代碼中執行 CPU 密集型任務的背景任務,利用 Android NDK。
然後,您將被引導通過 HTTP 協議或 Google GCM 平台非同步地與遠程服務互動。最後,我們將介紹 RxJava,這是一個流行的非同步 Java 框架,用於以簡潔和反應式的方式組合工作。