JNI values assignment to array
- by shoaib
i have this array of jvalue type and i want to assign string values
...im on unity trying to pass parameters to my java funtion using JNI library
jvalue[] myArray = new jvalue[2];
myArray[0]="abcd";
myArray[1]="khan";
gui.text= AndroidJNI.CallStaticStringMethod(obj_Activity, startAdsMethod, myArray);
could some 1 plz guide how to achieve the code above im 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
thanks
any help is highly appreciated