I'm currently trying to write a JNA wrapper for Libftd3xx (a library for FTDI chips). Unfortunately, I have never done this before and need some help from you guys to set things up correctly.
I already managed to call native code from my app following this nicely written tutorial for Android Studio. Furthermore, I managed to successfully compile the FTDI driver on my Windows 10 machine resulting in the file "libftd3xx.so". Now I would like to call into the FTDI driver using JNA.
The JNA website states the following:
Make your target library available to your Java program. There are several ways to do this:
The preferred method is to set the jna.library.path system property to the path to your target library. This property is similar to java.library.path, but only applies to libraries loaded by JNA.
[...]
Now I'm not sure how to proceed from here. How do I set the the jna.library.path using Android Studio? Once I have done that, how would I proceed to call into the precompiled driver?
Thank you very much for your help. It's highly appreciated.