First your .so library needs to be wrapped in a java class (let's call it SOWrapper class) so that java can access the native .so library methods.
In a java/android/eclipse project this is all that needs to be done in order to use the .so library.
If you've already used the .so library in a java eclipse project then you most likely already have this class (SOWrapper).
Your java calls SOWrapper methods, SOWrapper calls .so library methods.
To use the .so library in b4a you need an additional wrapper class - you need to wrap the SOWrapper class (let's call this SOWrapperWrapper class).
b4a can only call methods of the SOWrapperWrapper class.
So any methods you need to use in b4a need to be methods of the SOWrapperWrapper class.
b4a calls SOWrapperWrapper methods, SOWrapperWrapper calls SOWrapper methods and SOWrapper calls native methods of the .so library.
Your b4a library eclipse project will therefore consist of a minimum of:
- .so library file(not visible to b4a).
- Java class that wraps the .so library file(not visible to b4a).
- Java class that wraps the class that wraps the .so library file(visible to b4a).
Is your project confidential - are you covered by an NDA?
If not then i can help set up a basic eclipse project with everything in the right place and that'd just leave you to write the wrapper class.
Martin.