JNI values assignment to array

Posted by shoaib on Stack Overflow See other posts from Stack Overflow or by shoaib
Published on 2012-06-06T07:00:10Z Indexed on 2012/06/06 10:40 UTC
Read the original article Hit count: 261

Filed under:
|
|

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

© Stack Overflow or respective owner

Related posts about java

Related posts about jni