Chapter    8

Working with Android NDK and RenderScript

Developers predominantly write Android applications in Java. However, in some situations  it’s desirable (or even necessary) to express at least part of the code in another language (notably C or C++). This may come from a need to access resources only available in native code (such as kernel drivers), or to obtain better performance from critical sections of code. 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 to use C/C++ for implementing parts of your app in native code. The NDK provides headers and libraries for building native activities, handling ...

Get Android Recipes: A Problem-Solution Approach for Android 5.0, Fourth 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.