1JNIEXPORT void JNICALL Java_ClassName_MethodName(JNIEnv *env, jobject obj, jstring javaString)
2{
3 const char *nativeString = env->GetStringUTFChars(javaString, 0);
4
5 // use your string
6
7 env->ReleaseStringUTFChars(javaString, nativeString);
8}