问题描述:

I know we can use JNI to interact java and c++, but during my project, I want to complete the network in the java code, after that I want to leave the java code, and evoke the callback function in Cocos code.

网友答案:

make a callback in Java; in that java_callback() invoke a JNI function; in the JNI function, invoke a cocos_callback(); and there you have it ;)

相关阅读:
Top