-
-
Save initishbhatt/4b00146530d3ea3dabcec753cdee63f4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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