Advertisement
Guest User

Untitled

a guest
Mar 23rd, 2017
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. Object myObj = nativeCreateObject();
  2.  
  3. jobject* hold_ref;
  4. JNIEXPORT jobject JNICALL
  5. nativeCreateObject(JNIEnv *env ...) {
  6. .....
  7. result = env->NewGlobalRef(jobj);
  8. hold_ref = &result;
  9. return result;
  10. }
  11.  
  12. *hold_ref = NULL;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement