I have this array of jvalue type and I want to assign string values.
I'm on unity trying to pass parameters to my Java function using JNI library
jvalue[] myArray = new jvalue[2];
myArray[0]="abcd";
myArray[1]="khan";
gui.text= AndroidJNI.CallStaticStringMethod(obj_Activity, startAdsMethod, myArray);
How to achieve the code above?
I'm getting the error whilst assigning values to the array because the array is not of string type my function takes string parameters and jni wants them in form of array.