How to pass an integer from java to C++ with JNI??

So I’ve stored this integer in global variable “newValue” in AppActivity, I’m just trying to figure out the C++ code to retrieve that value and be able to pass it into a function? Can you guys give me the simplest, most dumbed down answer? I’m new to C++ and cocos so I’m amazed I was able to get a character to move around on screen.

This response on stackoverflow has a relatively simple answer:
https://stackoverflow.com/questions/24929345/pass-parameters-per-reference-from-c-to-java-via-jni/24932834