The Android NDK is a toolset that allows us to implement parts of our app using native-code languages such as C and C++. There are many articles about integrating Android SDK/NDK and writing some “C/C++” JNI compatible code. JNI is the Java Native Interface. It defines a way for managed code (written in the Java programming language) to interact with native code (written in C/C++).
But today we will talk about:
- the native cross-compiling on the Windows/UNIX-like systems
- uploading of the compiled binary file to the Android device
- running the compiled binary file via Android CLI shell.
And what is interesting, we will not use the Android SDK (except adb utility) or any others Android sources 🙂