I have a string array like {"myname","yourname","hisname"} and I am trying to send this array to C with using JNI. I could not find any clear solution for this. I have tried to take this string as a chararray but no success.
Is there a way to do this?
You can write a simple function that takes a
jobjectArrayobject, cast each one to jstring and then callGetStringUTFCharson it.Like this: