• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Will I be able to use C++ libraries when developing for Android?

Yannbane

Lurker
I'm currently making a purely math and algorithm-based C++ library. Will I be able to use it when developing for Android? How? I guess writing some Java wrappers, but will it then be usable on all JVMs?
 
If you make use of the Android NDK, or even create a wrapper Java library that uses JNI to reference your native library, then yes, but directly, no.
 
If you make use of the Android NDK, or even create a wrapper Java library that uses JNI to reference your native library, then yes, but directly, no.

Yeah, I'm perfectly fine with using Java wrappers.

My library is contained in a .a file, including all the headers. I hope this will work without many changes...
 
Back
Top Bottom