Skip to main content
  • Book
  • © 2012

Pro Android C++ with the NDK

Apress

Authors:

  • Aims to be one of the first and practical C++ books for Android game and graphics app developers.
  • C++ provides many enhancements and features that the Android SDK (Java) cannot always handle, mainly in building more sophisticated game apps or instense graphics.
  • Android NDK or Native Development Kit (NDK) is nascent to early growth in adoption for today's half million plus Android app developers.

Buy it now

Buying options

eBook USD 39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book USD 49.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Other ways to access

This is a preview of subscription content, log in via an institution to check for access.

Table of contents (14 chapters)

  1. Front Matter

    Pages i-xxiv
  2. Getting Started with C++ on Android

    • Onur Cinar
    Pages 1-39
  3. Exploring the Android NDK

    • Onur Cinar
    Pages 41-66
  4. Auto-Generate JNI Code Using SWIG

    • Onur Cinar
    Pages 95-126
  5. Logging, Debugging, and Troubleshooting

    • Onur Cinar
    Pages 127-154
  6. Bionic API Primer

    • Onur Cinar
    Pages 155-177
  7. Native Threads

    • Onur Cinar
    Pages 179-208
  8. POSIX Socket API: Local Communication

    • Onur Cinar
    Pages 259-273
  9. C++ Support

    • Onur Cinar
    Pages 275-284
  10. Native Graphics API

    • Onur Cinar
    Pages 285-333
  11. Native Sound API

    • Onur Cinar
    Pages 335-361
  12. Profiling and NEON Optimization

    • Onur Cinar
    Pages 363-380
  13. Back Matter

    Pages 381-389

About this book

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.

About the author

Onur Cinar has over 17 years of experience in design, development, and management of large scale complex software projects, primarily in mobile and telecommunication space. His expertise spans VoIP, video communication, mobile applications, grid computing, and networking technologies on diverse platforms. He has been actively working with Android platform since its beginning. He has a Bachelor of Science degree in Computer Science from Drexel University in Philadelphia, PA, United States. He is currently working at Skype as the Sr. Product Engineering Manager for Skype client on Android platform.

Bibliographic Information

Buy it now

Buying options

eBook USD 39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book USD 49.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Other ways to access