Introduction to the Android NDK
Android is actually based on the Java architecture. However, part of an Android application can be developed using native languages such as C and C++. This is where the Android NDK comes into the picture.
The Android NDK is a toolset used to develop a module of an application that will interact with hardware much faster. It is a well-known fact that C and C++ have the ability to interact with a native component directly, which reduces the latency between the application and hardware.
How the NDK works
An Android native code segment interacts with main application through the Java Native Interface (JNI). The Android NDK comes with a build script that converts native code into binary and includes it in the main Android application.
This binary is basically a native code library that can be used in any Android application as per requirement. An NDK build script creates .so
files and adds them to the application path.
The Android build process creates Dalvik Executable...