I know this might seems weird, but, right now I have a .SO (Shared Object in C) and have to make use in my Android Project.
Now My requirement is to call the functions that are in .SO directly in Java creating JNI wrapper for the headers in .SO .
My question is what I am assuming the flow as,
1.Create JNI native methods -> then Create header file and then -> create a implementation of those methods from header file, include the .h files from .SO in local implementation and call the methods present in .SO
or
- Directly Create a JNI native methods for the header files present in .SO which will call the C methods directly.
or
- Do we have any other approach?
Please correct me If I am missing something.
I have referred some online content on the same, and I could say that all these below examples are completely different than what I need.
https://www.codepool.biz/package-jni-shared-library-jar-file.html
https://www.codepool.biz/build-so-aar-android-studio.html
https://dzone.com/articles/generating-executable-jar-file
https://www.ibm.com/developerworks/java/tutorials/j-jni/j-jni.html
How to use c lib(.so) from android?