Interfacing/Wrapping Java Libraries (Android NG)

BlitzMax Forums/BlitzMax NG/Interfacing/Wrapping Java Libraries (Android NG)

RustyKristi(Posted 2016) [#1]
I found some simple java libraries which I think I could use with my android project, I was wondering what is the best approach of integrating it with my project, wrappers or converting to C++, etc. and finally a BMX mod/interface

I already tested the java libraries by creating standalone apks using ant/android tools and it works perfectly.

Any ideas where to start?

Currently I found these tools: (foss) (paid)

Brucey(Posted 2016) [#2]
It depends on your project.

I don't think anyone has written any code generators for simplifying the process, yet.

These libraries will generate C++ wrappers for the Java/JNI, but then you will need a load of "glue" code to wrap the C++ for BlitzMax.

The two options I see would be :
1) Generated pure virtual C++ classes - which NG can use directly via interfaces.
2) Generated JNI/C that BlitzMax could call into directly.

Either way, you will need something (like yourself) to make all the BlitzMax wrapping code, since I know of no code generators that do it for you.