Asynchronous Android
暫譯: 非同步 Android
Steve Liles
- 出版商: Packt Publishing
- 出版日期: 2013-12-27
- 售價: $1,840
- 貴賓價: 9.5 折 $1,748
- 語言: 英文
- 頁數: 146
- 裝訂: Paperback
- ISBN: 1783286873
- ISBN-13: 9781783286874
-
相關分類:
Android
海外代購書籍(需單獨結帳)
商品描述
As an Android developer you know you're in a competitive marketplace. This book can give you the edge by guiding you through the concurrency constructs and proper use of AsyncTask to create smooth user interfaces.
Overview
- Learn how to use Android's high-level concurrency constructs to keep your applications smooth and responsive
- Leverage the full power of multi-core mobile CPUs to get more work done in less time
- From quick calculations to scheduled downloads, each chapter explains the available mechanisms of asynchronous programming in detail
In Detail
With more than a million apps available from Google Play, it is more important than ever to build apps that stand out from the crowd. To be successful, apps must react quickly to user input, deliver results in a flash, and sync data in the background. Multithreading is the ability of an operating system to execute different parts of a program, called threads, simultaneously. It is one of the major techniques used for parallel computing and concurrency.
This book provides a step-by-step tutorial which will explain how Asynchronous Tasks and Handlers are used for performing multithreading with Android to improve the performance of Android applications. This book also guides you through the concurrency constructs provided by the Android platform, illustrating the applications, benefits, and pitfalls of each.
In this book, you'll learn how to use AsyncTask correctly to perform operations in the background, keeping user interfaces running smoothly while avoiding treacherous memory leaks. It will also help you discover Handler, HandlerThread, and Looper, the related and fundamental building blocks of asynchronous programming in Android.
This book will help you to build well-behaved applications with smooth and responsive user interfaces. By the end of this book, you will be able to delight your users with speedy results and data that is always fresh.
What you will learn from this book
- Understand Android's process model and its implications on your applications
- Exercise multithreading to build well-behaved Android applications that work with the platform
- Apply and control concurrency to deliver results quickly and keep your applications responsive to user input
- Discover Android-specific constructs that make asynchronous programming easy and efficient
- Learn how to apply Android's concurrency constructs to build smooth and responsive applications
Approach
Asynchronous Android is a step-by-step guide that builds a complete picture of the concurrency constructs available on the Android platform.
Who this book is written for
This book is for Android developers who want to learn about the advanced concepts of Android programming. No prior knowledge of concurrency and asynchronous programming is required. This book is also targeted towards Java experts who are new to Android.
商品描述(中文翻譯)
作為一名 Android 開發者,您知道自己身處於一個競爭激烈的市場中。本書可以通過指導您了解並正確使用 AsyncTask 的並發結構,幫助您在創建流暢的用戶界面方面獲得優勢。
概述
- 學習如何使用 Android 的高階並發結構,保持應用程序的流暢性和響應性
- 利用多核心移動 CPU 的全部性能,在更短的時間內完成更多工作
- 從快速計算到定時下載,每一章都詳細解釋了可用的異步編程機制
詳細內容
隨著 Google Play 上可用的應用程序超過一百萬個,構建能夠脫穎而出的應用程序比以往任何時候都更為重要。要成功,應用程序必須快速響應用戶輸入,迅速提供結果,並在背景中同步數據。多線程是操作系統同時執行程序不同部分(稱為線程)的能力。這是並行計算和並發的主要技術之一。
本書提供了一個逐步的教程,將解釋如何使用異步任務和處理器在 Android 中執行多線程,以提高 Android 應用程序的性能。本書還將指導您了解 Android 平台提供的並發結構,說明每個結構的應用、優點和陷阱。
在本書中,您將學習如何正確使用 AsyncTask 在背景中執行操作,保持用戶界面的流暢運行,同時避免危險的內存洩漏。它還將幫助您了解 Handler、HandlerThread 和 Looper,這些是 Android 中異步編程的相關和基本構建塊。
本書將幫助您構建行為良好的應用程序,擁有流暢和響應迅速的用戶界面。在本書結束時,您將能夠以快速的結果和始終更新的數據來取悅您的用戶。
您將從本書中學到的內容
- 理解 Android 的進程模型及其對您應用程序的影響
- 實踐多線程以構建與平台協同工作的行為良好的 Android 應用程序
- 應用和控制並發,以快速提供結果並保持應用程序對用戶輸入的響應性
- 發現 Android 特有的結構,使異步編程變得簡單高效
- 學習如何應用 Android 的並發結構來構建流暢和響應迅速的應用程序
方法
《異步 Android》是一本逐步指南,全面介紹了 Android 平台上可用的並發結構。
本書的讀者對象
本書適合希望了解 Android 編程高級概念的 Android 開發者。無需具備並發和異步編程的先前知識。本書也針對對 Android 新手的 Java 專家。