The signature should match, so that might be the issue. You may need
to use javap on command line:
javap -s -private com.my.Object
This should print the signatures for the methods in your class. After
you have the right signature, in JNI you can do the following:
jclass clazz = env->GetObjectClass(obj);
jmethodID myMethod = env->GetMethodID(clazz, "myMethod", "(III)V");
This should return a valid method id. If it doesn't, then could you
copy/paste the portion of your code, so we can troubleshoot?
Regards,
-onur
> --
> You received this message because you are subscribed to the Google Groups "android-ndk" group.
> To post to this group, send email to andro...@googlegroups.com.
> To unsubscribe from this group, send email to android-ndk...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/android-ndk?hl=en.
>
>
---
www.zdo.com
The GetMethodID parameters seem to be correct, but are you sure you
get the correct class with GetObjectClass? What do you see in logcat
output, does it say something when you call
GetObjectClass/GetMethodID?