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 tool set that lets you implement parts of your app by 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.
The NDK exists primarily to boost app performance, but it is not without penalty. When invoking ...
Get Android Recipes: A Problem-Solution Approach, Third 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.