當前位置:編程學習大全網 - 電腦編程 - Android JNI 筆記

Android JNI 筆記

? jclass GetObjectClass(jobject obj)

使用小栗子 (其中的 GetMethodID 函數請往下看) :

? jclass FindClass(const char* name)

小栗子:

? jmethodID GetMethodID(jclass clazz, const char* name, const char* sig)

?參數壹: jclass 查找到的java類

?參數二: const char* name 方法名

?參數三: const char* sig 方法的返回值

小栗子:

  • 上一篇: GetObjectClass、FindClass和GetMethodID
  • 下一篇:英菲克鼠標宏怎麽刪除
  • copyright 2024編程學習大全網