This sample uses 2 libs: one static, the other one shared lib. It is just a framework for how to use external ( 3rd party ) libs in android platform, which might be close to what you are at. System.LoadLibrary() will load shared lib, which means you will need create your own wrapper for your static lib:
- Create your java apps
- Add java wrapper function (s) for your native function (s)
- Generate your native function(s) prototype with javah or let android studio auto generate them for you ( right click on the java function, select generate prototype ); those functions have some special signature so they could be called by your java side code (you will see it when you get there ). Remember to add JNIEXPORT JNICALL to them (manually add them into your function if Android Studio forgets about it)
- Call your lib functions inside your archive ( *.a, static lib) from your generated native function(s)
some samples could be found in the sample repo, but you will need to decide whether to use ndk-build or cmake to build your native C/C++ code. It is better to use CMake for new projects.