How can I call a c++ method from Java

Hello everyone I got my game able to call java from c++, but now I have to call a method in my gamescene.cpp class from activity.java but im quite unsure on how to do this ? I know we have to call runonGLthread, instead of runonUIthread like when calling java from c++, but I don’t know about the rest of the code, i have tried looking for cocos2d-x examples of calling c++ from java but haven’t been able to find anything, thanks to anyone who can help with this issue

Please look here

There is example how to call C++ code from Java

1 Like

thanks I will check it out!

This topic was automatically closed 60 minutes after the last reply. New replies are no longer allowed.