I am trying to pass some initialization values from jni to java.
I have been able locate and correctly call the java method from my JNILib Init function but when I try to call it from a different function, the app crashes because it seems that I do not have the current class, method and env pointers. I have tried to store these pointers from my init function to some global variables but this didn't worked.
I am trying to call
env->CallStaticVoidMethod (class, method, jstr);
from a void function different than the jnilibInit function and I am not sure how to retain the pointers.
I haven't been able to find the class or the method from this function.
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744936285a4602044.html
评论列表(0条)