Hi all. We’ve downloaded the sample project and got it up and running on android, with no problems.
The next thing we need to work out is how the Cocos code communicates with the enclosing Android project?
How can I send a message from the C++ code which ultimately means I can _doSomething()_ in java?
Many thanks for any help.
zhangxm
November 2, 2011, 6:02am
#2
I think you can look how cocosdension is implemented on Android platform.
walzer
November 2, 2011, 6:06am
#3
Minggo, I think we can write a wiki page describing how to invoke java methods from c++ via JNI, just write the contents of your lecture in ShangHai.
This question is asked too frequently.
Thank you for your responses.
We actually figured it out, using this guide (which you’re probably already aware of):
Since this is my first blog post ever, let me start by introducing myself. My name is Alan, and I am a game programmer, game player, father,...
I hope this helps someone else!