Pro Android C++ with the NDK (Paperback)
- 出版商: Apress
- 出版日期: 2012-12-07
- 售價: $1,840
- 貴賓價: 9.5 折 $1,748
- 語言: 英文
- 頁數: 416
- 裝訂: Paperback
- ISBN: 1430248270
- ISBN-13: 9781430248279
Android C++ 高級編程－使用 NDK (Pro Android C++ with the NDK) (簡中版)
$788Android Wireless Application Development (Paperback)
$825Android NDK Beginner's Guide (Paperback)
$1,146Android Recipes: A Problem-Solution Approach, 2/e (Paperback)
$352深入理解 Android 網絡編程－技術詳解與最佳實踐
$1,249Embedded Software Development for Safety-Critical Systems (Hardcover)
$352Android Launcher 應用開發
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.
What you’ll learn
- What is the Android platform, and getting up to speed with the Android NDK.
- Using the Eclipse IDE to streamline developing native applications
- How to use Java Native Interface (JNI) to connect native code to Java world.
- Auto-generate JNI code using Simplified Wrapper and Interface Generator (SWIG).
- Introduction to Bionic API
- Networking through POSIX sockets
- Developing multithreaded applications using POSIX Threads, and Java Threads.
- Debug through Logging, GNU Debugger (GDB), and Eclipse Debugger
- Analyze memory issues through Valgrind
- C++ Support and Standard Template Library STL
- Native Graphics through JNI Graphics and OpenGL ES
- Native Sound through OpenSL ES
- Profiling the native code using GProf to identify performance bottlenecks
- Optimize code using SIMD/NEON
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.
Table of Contents
- Getting Started with C++ on Android
- Exploring the Android NDK
- Communicating with Native Code using JNI
- Auto-Generate JNI Code Using SWIG
- Logging, Debugging, and Troubleshooting
- Bionic API Primer
- Native Threads
- POSIX Socket API: Connection Oriented Communication
- POSIX Socket API: Connetionless Communication
- POSIX Socket API: Local Communication
- C++ Support
- Native Graphics API
- Sound Native API
- Profiling and NEON Optimization