Android High Performance Programming

Build fast and efficient Android apps that run as reliably as clockwork in a multi-device world
Preview in Mapt

Android High Performance Programming

Enrique López Mañas, Diego Grancini

1 customer reviews
Build fast and efficient Android apps that run as reliably as clockwork in a multi-device world

Quick links: > What will you learn?> Table of content> Product reviews

Mapt Subscription
FREE
$29.99/m after trial
eBook
$28.00
RRP $39.99
Save 29%
Print + eBook
$49.99
RRP $49.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$28.00
$49.99
$29.99 p/m after trial
RRP $39.99
RRP $49.99
Subscription
eBook
Print + eBook
Start 14 Day Trial

Frequently bought together


Android High Performance Programming Book Cover
Android High Performance Programming
$ 39.99
$ 28.00
Asynchronous Android Programming - Second Edition Book Cover
Asynchronous Android Programming - Second Edition
$ 39.99
$ 28.00
Buy 2 for $35.00
Save $44.98
Add to Cart

Book Details

ISBN 139781785288951
Paperback412 pages

Book Description

Performant applications are one of the key drivers of success in the mobile world. Users may abandon an app if it runs slowly. Learning how to build applications that balance speed and performance with functionality and UX can be a challenge; however, it's now more important than ever to get that balance right.

Android High Performance will start you thinking about how to wring the most from any hardware your app is installed on, so you can increase your reach and engagement. The book begins by providing an introduction to state–of-the-art Android techniques and the importance of performance in an Android application. Then, we will explain the Android SDK tools regularly used to debug and profile Android applications. We will also learn about some advanced topics such as building layouts, multithreading, networking, and security. Battery life is one of the biggest bottlenecks in applications; and this book will show typical examples of code that exhausts battery life, how to prevent this, and how to measure battery consumption from an application in every kind of situation to ensure your apps don’t drain more than they should.

This book explains techniques for building optimized and efficient systems that do not drain the battery, cause memory leaks, or slow down with time.

Table of Contents

Chapter 1: Introduction: Why High Performance?
Why does the performance of an application mean so much to so many?
Manual testing and automatic testing
ANR and delays in software
Android architecture
Dalvik Virtual Machine
Memory management
Energy consumption
Java language
Native Development Kit or how to develop with native code when needed
Three limits in application responsiveness
Business value of software quality
Summary
Chapter 2: Efficient Debugging
Android Debug Bridge
Dalvik Debug Monitor Server
Capturing and analyzing thread information
Heap analysis and visualization
Allocation tracker
Network usage
Emulator Control
System status
Debugging the UI
Profiling with Hierarchy Viewer
Systrace
Android device debug options
Android Instant Run
GPU profiler
Running a trace
ClassyShark
Getting started
Summary
Chapter 3: Building Layouts
Walkthrough
Best practices
Debugging tools
Summary
Chapter 4: Memory
Walkthrough
Best practices
Debugging tools
Summary
Chapter 5: Multithreading
Walkthrough
Best practices
Debugging tools
Summary
Chapter 6: Networking
Walkthrough
Best practices
Debugging tools
Summary
Chapter 7: Security
WhatsApp – the eternal showcase of "no-gos"
Going deeper into the code
Capturing an APK file
Autopsy of an APK file
Code injection
Insecure storage
Encrypted communication
Summary
Chapter 8: Optimizing Battery Consumption
Analysis
Doze feature and App Standby
Avoiding useless network requests
Dealing with BroadcastReceivers on demand
Networking
Summary
Chapter 9: Native Coding in Android
Getting started – setting up NDK in our system
JNI
Initial concepts
Creating our first HelloWorld-JNI
Creating a native activity with Android NDK
Debugging NDK
Android.mk
More variables in NDK
NDK macros
Application.mk
Including existing libraries
Exporting header files
Summary
Chapter 10: Performance Tips
Bitmaps
Image optimization
Serialization
Code improvements
Java 8 in Android N
APK optimizations
Summary

What You Will Learn

  • Create Android applications that squeeze the most from the limited resource capacity of devices
  • Swap code that isn’t performing
  • Efficient memory management by identifying problems such as leaks
  • Reap the benefits of multithreaded and asynchronous programming
  • Maximize the security and encryption mechanisms natively provided by Android 
  • Perform efficient network operations and techniques to retrieve data from servers
  • Master the NDK to write native code that can perform faster operations

Authors

Table of Contents

Chapter 1: Introduction: Why High Performance?
Why does the performance of an application mean so much to so many?
Manual testing and automatic testing
ANR and delays in software
Android architecture
Dalvik Virtual Machine
Memory management
Energy consumption
Java language
Native Development Kit or how to develop with native code when needed
Three limits in application responsiveness
Business value of software quality
Summary
Chapter 2: Efficient Debugging
Android Debug Bridge
Dalvik Debug Monitor Server
Capturing and analyzing thread information
Heap analysis and visualization
Allocation tracker
Network usage
Emulator Control
System status
Debugging the UI
Profiling with Hierarchy Viewer
Systrace
Android device debug options
Android Instant Run
GPU profiler
Running a trace
ClassyShark
Getting started
Summary
Chapter 3: Building Layouts
Walkthrough
Best practices
Debugging tools
Summary
Chapter 4: Memory
Walkthrough
Best practices
Debugging tools
Summary
Chapter 5: Multithreading
Walkthrough
Best practices
Debugging tools
Summary
Chapter 6: Networking
Walkthrough
Best practices
Debugging tools
Summary
Chapter 7: Security
WhatsApp – the eternal showcase of "no-gos"
Going deeper into the code
Capturing an APK file
Autopsy of an APK file
Code injection
Insecure storage
Encrypted communication
Summary
Chapter 8: Optimizing Battery Consumption
Analysis
Doze feature and App Standby
Avoiding useless network requests
Dealing with BroadcastReceivers on demand
Networking
Summary
Chapter 9: Native Coding in Android
Getting started – setting up NDK in our system
JNI
Initial concepts
Creating our first HelloWorld-JNI
Creating a native activity with Android NDK
Debugging NDK
Android.mk
More variables in NDK
NDK macros
Application.mk
Including existing libraries
Exporting header files
Summary
Chapter 10: Performance Tips
Bitmaps
Image optimization
Serialization
Code improvements
Java 8 in Android N
APK optimizations
Summary

Book Details

ISBN 139781785288951
Paperback412 pages
Read More
From 1 reviews

Read More Reviews

Recommended for You

Asynchronous Android Programming - Second Edition Book Cover
Asynchronous Android Programming - Second Edition
$ 39.99
$ 28.00
Android: Programming for Developers Book Cover
Android: Programming for Developers
$ 71.99
$ 50.40
Android Application Development Cookbook - Second Edition Book Cover
Android Application Development Cookbook - Second Edition
$ 35.99
$ 25.20
Android Design Patterns and Best Practice Book Cover
Android Design Patterns and Best Practice
$ 35.99
$ 25.20
Hacking Android Book Cover
Hacking Android
$ 35.99
$ 25.20
Android UI Design Book Cover
Android UI Design
$ 31.99
$ 22.40