JNI callback to Java method question

G

ginjasvinja

Hi all,

in my code I used to call Java method which is void and nas no
arguments, from native code, like:

jEnv->CallVoidMethod( obj, jEnv->GetMethodID( jEnv->GetObjectClass( obj
), "envDepInfo", "()V" ) );

Now I want to call Java method which is also void, but takes some int
arguments. I can not just say

jEnv->CallVoidMethod( obj, jEnv->GetMethodID( jEnv->GetObjectClass( obj
), "envDepInfo", "(I)V" ) );

because I have more than one arguments, and also I do not have any idea
how to pass that arguments. Does anyone can help me with this?

Thanks!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,228
Members
46,818
Latest member
SapanaCarpetStudio

Latest Threads

Top