Pro Android C++ with the NDK

This document was uploaded by one of our users. The uploader already confirmed that they had the permission to publish it. If you are author/publisher or own the copyright of this documents, please report to us by using this DMCA report form.

Simply click on the Download Book button.

Yes, Book downloads on Ebookily are 100% Free.

Sometimes the book is free on Amazon As well, so go ahead and hit "Search on Amazon"

Android is one of the major players in the mobile phone market. Android is a mobile platform that is built on the top of Linux operating system. The native-code support on Android offers endless opportunities to application developers, not limited the functionality that is provided by Android framework. Pro Android C++ with the NDK is an advanced tutorial and professional reference for today's more sophisticated app developers now porting, developing or employing C++ and other native code to integrate into the Android platform to run sophisticated native apps and better performing apps in general. Using a game app case study, this book explores tools for troubleshooting, debugging, analyzing memory issues, unit testing, unit test code coverage, performance measurement, on native applications, as well as integrating the Android NDK toolchain into existing Autoconf, Makefile, CMake, or JAM based build systems. Pro Android C++ with the NDK also covers the following:

ยท

  • The Android platform, and getting up to speed with the Android NDK, and exploring the APIs that are provided in native space.
  • An overview of Java Native Interface (JNI), and auto-generating JNI code through Simplified Wrapper and Interface Generator (SWIG).
  • An introduction to Bionic API, native networking. native multithreading, and the C++ Standard Template Library (STL) support.
  • Native graphics and sound using JNI Graphics, OpenGL ES, and OpenSL ES.
  • Debugging and troubleshooting native applications using Logging, GNU Debugger (GDB), Eclipse Debugger, Valgrind, strace, and other tools.
  • Profiling native code using GProf to identify performance bottlenecks, and NEON/SIMD optimization from an advanced perspective, with tips and recommendations.

Author(s): Onur Cinar (auth.)
Edition: 1
Publisher: Apress
Year: 2012

Language: English
Pages: 416
Tags: Computer Science, general

Front Matter....Pages i-xxiv
Getting Started with C++ on Android....Pages 1-39
Exploring the Android NDK....Pages 41-66
Communicating with Native Code using JNI....Pages 67-93
Auto-Generate JNI Code Using SWIG....Pages 95-126
Logging, Debugging, and Troubleshooting....Pages 127-154
Bionic API Primer....Pages 155-177
Native Threads....Pages 179-208
POSIX Socket API: Connection-Oriented Communication....Pages 209-245
POSIX Socket API: Connectionless Communication....Pages 247-258
POSIX Socket API: Local Communication....Pages 259-273
C++ Support....Pages 275-284
Native Graphics API....Pages 285-333
Native Sound API....Pages 335-361
Profiling and NEON Optimization....Pages 363-380
Back Matter....Pages 381-389