The Android NDK (Native Development Kit) is basically a set of tools for reusing code written in C / C ++ (native code). It compiles native code into a native library. The NDK is similar to the Android SDK, with the main difference between using the SDK for Java codes only. NDK is used in applications developed for several platforms, such as iOS, Windows. Applications such as Whatsapp, Instagram were developed using the NDK.
Java code uses JNI (native Java interface) to call functions from its own library, such as access to objects, methods, etc. In addition, native code can access the Java environment.
source share