Advertisement
Guest User

Untitled

a guest
Jun 29th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. extern "C"
  2. JNIEXPORT void JNICALL
  3. Java_com_ihorkucherenko_storage_Store_setObject(
  4. JNIEnv* pEnv,
  5. jobject pThis,
  6. jstring pKey,
  7. jobject pObject) {
  8. StoreEntry* entry = allocateEntry(pEnv, &gStore, pKey);
  9. if (entry != NULL) {
  10. entry->mType = StoreType_Object;
  11. entry->mValue.mObject = pEnv->NewGlobalRef(pObject);
  12. if(entry->mValue.mObject != NULL) {
  13. __android_log_print(ANDROID_LOG_INFO, __FUNCTION__, "SUCCESS");
  14. }
  15. }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement