Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Object myObj = nativeCreateObject();
- jobject* hold_ref;
- JNIEXPORT jobject JNICALL
- nativeCreateObject(JNIEnv *env ...) {
- .....
- result = env->NewGlobalRef(jobj);
- hold_ref = &result;
- return result;
- }
- *hold_ref = NULL;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement