I know you guys already have too much work developing cocos2d-x, but I think I have to bring some points that in my opinion may prevent many people from using cocos2d-x.
cocos2d-x allow us to develop for Android in C/C++ language what is good but Android world is all around Java. It means that many wonderful tools are provided as Java code only.
Specifically, AdMob and Flurry.
I know it’s a matter of JNI calls and that in theory anyone that would like to use them should be able to do this integration on itself. The problem is that but most of users don’t know how to do these calls.
I’d like to ask you guys do develop two sample codes with this integration. So it would both ease adoption of cocos2d-x and help people to improve this integration.
I’m trying to integrate AdMob with cocos2d-x myself but I think my knowledge is not enough.
I think your problem is how to use JNI. Walser has asked me to write a document describes how to use JNI, but it is a big topic. I will collect some material of this topic and share it.
It’s not true, Java calling C native function and vice versa is working.
@Simon You I think you didn’t understand what I wanted to say (probably because of my poor English) .
When I wrote:
I’ve develop JNI in the paste (2001). At the time, Java was calling C functions.
I just wanted to say that I’ve develop a JNI project in which only Java needed to access C functions. I didn’t need C functions accessing Java functions and because that I don’t now how to call Java functions from C.
I didn’t want to say that it wasn’t impossible to call Java from C.