Issue
I have a small doubt regarding native library access using NDK.
- Is it possible to access native functions in the library using
JNI? I have a library built completely onC++, is it possible to load that external library and writeJNIto communicate with functions in the library? - If not is it possible to embed that
JNI classwithin the library and communicate with it fromAndroidactivity?
Solution
Take a look at this sample code:
https://github.com/mkowsiak/jnicookbook/tree/master/recipes/recipeNo025
There, you have a sample code that wraps C++ code inside JNI wrapper.
Unfortunately, all you can do (inside JNI) is to call native function.
Have fun with JNI!
Answered By - Oo.oO
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.