How to transform C code to JNI Code
问题 I have C code ( testFile .c) that I want to used in Android App, using JNI. This code contains pure C code and it has many methods inside. Moreover, it also calls some C header files ( file1 .h, file2 .h). For example: testFile .c #include "file1.h" #include "file2.h" void myMethod1() { ... ... } void myMethod2() { ... ... } void myMethod3() { ... ... } Whether I have to transform whole of testFile .c to JNI code, or just transform some methods that will i used later (not all of them)? Should