Pro Android Apps Performance Optimization (Paperback)

Herv Guihot

  • 出版商: Apress
  • 出版日期: 2012-01-27
  • 售價: $1,480
  • 貴賓價: 9.5$1,406
  • 語言: 英文
  • 頁數: 284
  • 裝訂: Paperback
  • ISBN: 1430239999
  • ISBN-13: 9781430239994
  • 相關分類: Android
  • 立即出貨 (庫存=1)

買這商品的人也買了...

商品描述

Today's Android apps developers are often running into the need to refine, improve and optimize their apps performances. As more complex apps can be created, it is even more important for developers to deal with this critical issue. 

Android allows developers to write apps using Java, C or a combination of both with the Android SDK and the Android NDK. Pro Android Apps Performance Optimization reveals how to fine-tune your Android apps, making them more stable and faster. In this book, you'll learn the following:

  • How to optimize your Java code with the SDK, but also how to write and optimize native code using advanced features of the Android NDK such as using ARM single instruction multiple data (SIMD) instructions (in C or assembly)
  • How to use multithreading in your application, how make best use of memory and how to maximize battery life
  • How to use to some OpenGL optimizations and to Renderscript, a new feature in Android 3.0 (Honeycomb) and expanded in Android 4.0 (Ice Cream Sandwich).

After reading and using this book, you'll be a better coder and your apps will be better-coded. Better-performing apps mean better reviews and eventually, more money for you as the app developer or your indie shop.

What you’ll learn

  • How to optimize your applications in Java
  • How to optimize your applications using the NDK
  • How to best use memory to maximize performance
  • How to maximize battery life
  • How and when to use multi-threading
  • How to benchmark and profile your code
  • How to optimize OpenGL code and use Renderscript

Who this book is for

Android developers already familiar with Java and Android SDK, who want to go one step further and learn how to maximize performance.

Table of Contents

  1. Optimizing Java code
  2. Getting started with the Android NDK
  3. Using advanced NDK features
  4. Using memory efficiently
  5. Multithreading and synchronization
  6. Benchmarking and profiling your application
  7. Maximizing battery life
  8. OpenGL optimizations
  9. Renderscript

商品描述(中文翻譯)

如今的Android應用程式開發者常常遇到需要改進和優化應用程式性能的需求。隨著越來越複雜的應用程式的出現,開發者更需要處理這個關鍵問題。

Android允許開發者使用Java、C或兩者結合的方式來編寫應用程式,並使用Android SDK和Android NDK。《Pro Android Apps Performance Optimization》揭示了如何微調Android應用程式,使其更穩定和更快速。在這本書中,您將學到以下內容:

- 如何使用SDK優化Java代碼,以及如何使用Android NDK的高級功能來編寫和優化本機代碼,例如使用ARM單指令多數據(SIMD)指令(使用C或組合語言)。
- 如何在應用程式中使用多線程,如何充分利用內存,以及如何最大化電池壽命。
- 如何使用一些OpenGL優化技巧和Renderscript,這是Android 3.0(Honeycomb)中的一個新功能,在Android 4.0(Ice Cream Sandwich)中得到了擴展。

閱讀並使用本書後,您將成為一個更好的程式設計師,您的應用程式也將編寫得更好。性能更好的應用程式意味著更好的評價,最終對您作為應用程式開發者或獨立開發商來說,也意味著更多的收入。

您將學到以下內容:

- 如何優化Java應用程式
- 如何使用NDK優化應用程式
- 如何最佳利用內存以實現最佳性能
- 如何最大化電池壽命
- 如何使用多線程以及何時使用多線程
- 如何進行代碼基準測試和分析
- 如何優化OpenGL代碼並使用Renderscript

本書適合已熟悉Java和Android SDK的Android開發者,他們希望更進一步並學習如何最大化性能。

目錄:

1. 優化Java代碼
2. 開始使用Android NDK
3. 使用高級NDK功能
4. 高效使用內存
5. 多線程和同步
6. 應用程式基準測試和分析
7. 最大化電池壽命
8. OpenGL優化
9. Renderscript