
Pro Android C++ with the NDK
by Onur Cinar
300 pages· 2012· ISBN 9781430248279
About
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 Native Development Kit) 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 more graphically intense apps, more sophisticated game apps and better performing apps in general. Introduces the Android platform, and getting up to speed with the Android NDK, and exploring the APIs that are provided in native space. Gives an overview of Java Native Interface (JNI), native multithreading, the C++ Standard Template Library (STL), and NEON/SIMD optimization from an advanced perspective, with tips and recommendations. Using a native-code (C/C++) 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. What you’ll learn What is the Android platform, and getting up to speed with the Android NDK What are the Android NDK APIs including Native Activity support, OpenGL ES, OpenSL ES, OpenMAX AL, JNI Graphics, and Sensor APIs. How to use Java Native Interface (JNI), Simplified Wrapper and Interface Generator (SWIG) to automatically generate the JNI code to connect native-code to the Java world. What are and how to use C++ and the Standard Template Library (STL) How to do multithreading through POSIX Threads How to optimize code through NEON/SIMD, compiler vectorization, and intrinsics How to debug through GDB, DDD, and the Eclipse Debugger How to analyze memory through Valgrind, Electric Fence, Memwatch, YAMC How to measure App performance through GProf How to do unit testing and code coverage through GCov How to use and integrate the Android NDK toolchain into existing build systems such as Autoconf, Makefiles, CMake, and JAM Who this book is for This book is for software professionals who are interested in leveraging the Android NDK to port their existing native-code app, such as C++, to the Android platform, as well as existing Android developers who are interested in improving their apps overall performance by utilizing native-code.
Discuss Pro Android C++ with the NDK with other readers
Join or start a book club for Pro Android C++ with the NDK on Readfeed. Live chat, shared reading progress, and AI discussion questions — free to get started.
Frequently asked questions
How do I join a book club for Pro Android C++ with the NDK?
Sign up free on Readfeed, then browse public clubs or start your own club with Pro Android C++ with the NDK as the current read. Invite friends with a share link and discuss together with live chat and AI discussion questions.
Can I discuss Pro Android C++ with the NDK with other readers online?
Yes. Readfeed book clubs let you chat live, share progress, and join discussions about Pro Android C++ with the NDK with readers worldwide — whether your club is virtual, in-person, or hybrid.
Is Readfeed free?
Yes. Creating an account and joining book clubs is free. Sign up to find readers who love the same books and start discussing today.