Chapter 8
Working with Android NDK and Renderscript
Developers typically write Android apps entirely in Java. However, situations arise where it’s desirable (or even necessary) to express at least part of the code in another language (notably C or C++). Google addresses these situations by providing the Android Native Development Kit (NDK) and Renderscript.
Android NDK
The Android NDK complements the Android SDK by providing a toolset that lets you implement parts of your app using native code languages such as C and C++. The NDK provides headers and libraries for building native activities, handling user input, using hardware sensors, and more.
Many developers believe that the NDK exists to boost app performance. Although performance can improve, ...
Get Android Recipes: A Problem-Solution Approach, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.