Hi jmpessoa thank you much for further help.
I have to use LoadLibrary because I need the library to be loaded dynamically.
I generate the interfaces for the library with my tool (PWIG, is already part of my KControls in the bitbucket repo) and they are the same for Win, Linux, MAC, Android....
I think currently it works fine (on my Android 4 device, not on the emulator but who cares, I can try putting it to the usr/lib folder according to your point 1 so maybe it helps even for the emulator)
Actually I thought about some automation of the library management in LAMW/Controls.java.
I mean not having to disable the "[Configure] CanUpdateJavaTemplates" because it is needed when I add some new UI to the module.
I think I might be able to do this myself in LAMW, could you point me in correct direction?
EDIT:
I thought about adding a new page to Android Project Options named External Libraries, there a simple list and then generate the code to Controls.java.
But maybe you'll be quicker than me, as with the demo libs written in Pascal and C
I am still playing with my real project and want to test as much as possible first.
Later I will send you a simple demo for a dynamically loaded library as promised
, where the interfaces for the caller (libcontrols.so) and callee (libmylib.so) were generated by PWIG. Here you can use classes from the library transparently as if they were declared in the main app.
EDIT2:
Now I'll try to crosscompile our Linux UDP driver, which is based on Synapse.
If it is not running then I'll have to write a new one for Android using udpsocket.
As I suspected Synapse does not work under Android. Question is now how to use jUDPSocket in my custom library where I don't have (and already can't have) the jApp reference.