Introduction To Android NDK



While most Android apps are written in pure Java, Android's Native Development Kit (NDK) enables us to access code written in C/C++ via Java Native Interface (JNI). This is often done in the name of performance, or to take advantage of existing legacy code-base.

In this tutorial, we will see what NDK is, why we would use it, and build a simple application to see how to get started. I hope you enjoy it.

01 - What is the NDK? (3:16)
02 - Why use the NDK? (4:07)
03 - Installation (2:17)
04 - Getting Started (22:54)
05 - Application Binary Interface (8:09)
06 - The UI (10:49)
07 - The Client (15:32)
08 - The First Run (9:10)
09 - Using LibLog (11:01)
10 - Using JNI_OnLoad (18:51)

Code used in this tutorial is available at Marakana's GitHub Repository.

Published April 27, 2012