You can see this contribution on one of the C++ extensions I made for the process that goes into making a C++ extension work on Android - basically there’s a lot of boilerplate. I include the source code for anyone willing to mess with it, but using TXR can be easier for something that needs to be highly cross-platform.