Android - JNI NewObject() Does Not Save Values When Passing It To Java
I am using native code to create an object which I then pass as an argument to a method I call. Nothing appears to go wrong in native code, but when I get the call in Java, the obj
Solution 1:
You're not passing the object you constructed to the method (or indeed doing anything with it).
Instead of
jenv->CallVoidMethod(clientHandle->job,mid);
don't you want
jenv->CallVoidMethod(clientHandle->job,mid,dataObject);
?
Also you're not checking whether that call succeeded or not.
Post a Comment for "Android - JNI NewObject() Does Not Save Values When Passing It To Java"