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 youall 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 Optimizing Java code Getting started with the Android NDK Using advanced NDK features Using memory efficiently Multithreading and synchronization Benchmarking and profiling your application Maximizing battery life OpenGL optimizations RenderscriptARMv5 Assembly Code (Thumb Mode) 00000000 alt;gcdagt;: 0: 1c03 adds r3, r0, #0 2: 428b cmp r3, r1 4: d004 beq.n 10 alt;gcd+0x10agt; 6: 4299 cmp ... Thumb instruction set (all 16-bit instructions), the ARMv7 architecture supports the Thumb2 instruction set and instructions can be 16- or 32-bit. ... NOTE: Even though the ARM architecture is the dominant one, being able to read x86 assembly code cannot hurt.
|Title||:||Pro Android Apps Performance Optimization|
|Publisher||:||Apress - 2012-01-17|