Hello
I want to use a native C-Library in B4A and as far as I know, the only way to get this working is creating a Java wrapper around the native .so library and then a B4A wrapper for the Java wrapper. So if someone can help me to do this, please contact me.
The native library I want to consume is: https://github.com/libdivecomputer/libdivecomputer
I'm using this lib for several years in my VB.NET project on Windows with pinvoke and I can provide my VB.NET code as a reference. Because special hardware is required for testing, I do NOT expect a ready to use wrapper. A scaffolding with some functions and callbacks should be sufficient for me to complete the project.
Requirements:
- You have to be able to create a Java wrapper for a native .so library
- You have to know how to create a B4A wrapper for the Java wrapper
- You have to know how to call C-code functions from Java and B4A and how to receive callbacks from native code
- It would be helpful if you understand VB.NET code, as I can provide this code as a reference
If there is a better way to consume a native .so library in B4A, please let me know.
You can contact me here in the forum or via Email: info (at) divinglog.de
Thank you,
Sven Knoch
I want to use a native C-Library in B4A and as far as I know, the only way to get this working is creating a Java wrapper around the native .so library and then a B4A wrapper for the Java wrapper. So if someone can help me to do this, please contact me.
The native library I want to consume is: https://github.com/libdivecomputer/libdivecomputer
I'm using this lib for several years in my VB.NET project on Windows with pinvoke and I can provide my VB.NET code as a reference. Because special hardware is required for testing, I do NOT expect a ready to use wrapper. A scaffolding with some functions and callbacks should be sufficient for me to complete the project.
Requirements:
- You have to be able to create a Java wrapper for a native .so library
- You have to know how to create a B4A wrapper for the Java wrapper
- You have to know how to call C-code functions from Java and B4A and how to receive callbacks from native code
- It would be helpful if you understand VB.NET code, as I can provide this code as a reference
If there is a better way to consume a native .so library in B4A, please let me know.
You can contact me here in the forum or via Email: info (at) divinglog.de
Thank you,
Sven Knoch