Hi I want to pass a character string to java from jni to java in android-ndk. suppose this is my native function.
private native int myFunc(String buffer);
This is my native function in jni:
jint Java_com_example_twolibs_myFunc(JNIEnv* env, jobject thiz, jstring buffString){
//I want to pass a character array to buffString from here, that I would read from java as String.
return 0;
}
How to do it?