JNI - how to use multiple Jni wrapper instances with different fields?
background I have an android project that uses JNI (using NDK) to code in both Java and C/C++. I've created a Jni java wrapper on the java side that will do all the Jni oprerations by itself, while no other java class can access the jni operations directly other than this wrapper. the problem problem is , i wish to create multiple instances of this wrapper, while the Jni part should have an instance per Jni wrapper. this is a problem, since the Jni part holds the same fields for all instances. the question How can i solve this problem, so that for each java instance of the jni wrapper, there