Android makes it a bit more complicated to use C++ code, than iOS. You need to use the Android Native Development Kit (NDK), in order to compile the code into a static library . The bindings between the two layers (Android and C++ library) is handled via the Java Native Interface (JNI).
Read more