Android NDK: Calling Java functions from C++

后端 未结 2 815
渐次进展
渐次进展 2021-02-06 03:21

I am very new to JNI and I am trying to figure out how certain things work before I port my C++ iOS code to it. I was successful in getting one of the NDK samples working in And

2条回答
  •  醉酒成梦
    2021-02-06 04:11

    http://docs.oracle.com/javase/7/docs/technotes/guides/jni/spec/functions.html

    GetStaticMethodID

    jmethodID GetStaticMethodID(JNIEnv *env, jclass clazz, const char *name, const char *sig);

    Returns the method ID for a static method of a class. The method is specified by its name and signature.

提交回复
热议问题