=JNI=call ( static? or instance? ) method

I found that JNIHelper.cpp only support call static method. But as we know, it’s achievable call instance method in jni.h.
So, I hope that do some thing to make JNIHelper.cpp support static and instance.

I have a question:

* When we using JNI, static and instance, which is better? Or which can be applied in more occasions? *

Thank you!

If your java function requires the application context etc then its’ best to do it as a member function.
If your java function calls other static functions from a library then you can just use the static methods.

vamsi krishna veligatla wrote:

If your java function requires the application context etc then its’ best to do it as a member function.
If your java function calls other static functions from a library then you can just use the static methods.

thanks~