i**p 发帖数: 902 | 1 【 以下文字转载自 Java 讨论区 】
发信人: isup (No), 信区: Java
标 题: Android C/C++ native calls Java APIs
发信站: BBS 未名空间站 (Fri Jul 20 01:22:38 2012, 美东)
There are lots of examples that Android C/C++ native calls Java APIs.
However, all of these examples I have read are the Java APIs call native
first and then the native calls other Java APIs by using the passed JNI-ENV.
How could C/C++ native calls Java APIs without the passed JNI-ENV, or by
anyway to get the JNI-ENV?
Can you give an example or a link for it?
Thanks! |
|