Skip to Main Content

JNI callback funtion with multiple arguments

905554Dec 22 2011 — edited Dec 26 2011
Hi,

Is it possible to return more than one argument in java callback function.

for single arg return, I am using below function in my C code.

jmethodID mid = (*env)->GetMethodID(env, cls, "callback", "(I)V");
(*env)->CallVoidMethod(env, obj, mid, depth);

what are the changes require to return more than one arg?


Thanks in Advance
Ashwani
This post has been answered by EJP on Dec 22 2011
Jump to Answer
Comments
Post Details
Added on Dec 22 2011
2 comments
2,335 views