Well, what can I say? I have a vector which stores the names of some image files, and I need to give that string vector to a class I have in java, which creates a custom PageViewer and does some stuff. However, I haven’t found a way to send it as an array (and I need to send it as a single element, I can’t send each file one by one), so, has anyone done any similar?.
I haven’t done it. But it doesn’t seem that difficult.
If your trouble is in the process of sending, well, it can’t be done if a Java function doesn’t ask for a native method first. So, make a native method that returns the array you want and call it from Java. Find more info here, but check the Cocos2D source code for real examples.
If your trouble is in making the array itself, then this link might help. You will need to use a jobjectarray.
I hope my ignorant tips help you in some way.