Skip to content

Instantly share code, notes, and snippets.

Last active Apr 12, 2018
What would you like to do?
jclass fieldClass = env->FindClass("com/initishbhatt/kotilnjnisample/NativeStore");
jmethodID methodId = env->GetStaticMethodID(fieldClass, "testMethod", "(I)I");
if (methodId == NULL) {
__android_log_print(ANDROID_LOG_INFO, __FUNCTION__, "methodId == null");
} else {
jint fieldvalue = env->CallStaticIntMethod(fieldClass, methodId, 20,20);
__android_log_print(ANDROID_LOG_INFO, __FUNCTION__, "fieldvalue: %d ", fieldvalue);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment