[ACCEPTED]-JNI , call boolean method-java-native-interface
Accepted answer
My Java signature was to return Boolean
instead 1 of boolean
.
Also
jmethodID function2ID = env->GetMethodID(
activityClass,
"MyFuncName",
"(Ljava/lang/String;)B");
needs to be Z
instead of B
.
jmethodID function2ID = env->GetMethodID(
activityClass,
"MyFuncName",
"(Ljava/lang/String;)Z");
Source:
stackoverflow.com
More Related questions
Cookie Warning
We use cookies to improve the performance of the site. By staying on our site, you agree to the terms of use of cookies.