Compile c/c++ for android and make a native executable

Most of us are familiar with android studio or Android SDK to develop an Android App but what about binary executables?

Let say you have a C code like this and you what to compile it and run it on your Android phone just like a console application.

#include <stdio.h>
int main()
 printf("Hello world \n");
 printf("I'm running on Android\n");
 return 0;

Continue reading…