This is a simple C++ application built with CMake and NDK.
For x86 (also works for arm) building from command line:
cmake -DCMAKE_TOOLCHAIN_FILE=$ANDROID_NDK/build/cmake/android.toolchain.cmake -DANDROID_ABI=x86
adb push HelloWorld /data/local/tmp
adb shell /data/local/tmp/HelloWorld
MIT