Skip to content

Instantly share code, notes, and snippets.

@turkergoksu
Created March 28, 2020 14:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save turkergoksu/bd36934026bdc2eb1c8ca5fe220b005f to your computer and use it in GitHub Desktop.
Save turkergoksu/bd36934026bdc2eb1c8ca5fe220b005f to your computer and use it in GitHub Desktop.
#include <jni.h>
#include <string>
extern "C" JNIEXPORT jstring JNICALL
Java_me_turkergoksu_kefilm_ApiKeyLibrary_getMovieDbApiKeyFromJNI(JNIEnv *env, jobject object) {
std::string movieDbApiKey = "YOUR_API_KEY_HERE";
  return env->NewStringUTF(movieDbApiKey.c_str());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment