I have created one SDK in JAVA for android which is currentlly now only for android.
But now i require to give support of cocos2d support as well.
I have gone through some stackoverflow links and some blogs but can’t find an exact method to create and extension for android project create in cocos2d.
Well I have an idea that,
I have created one C file that can be call from the android activity or any other class and that C file will call the method respected in my SDK(.JAR file).
and i can create the whole list of method in that C file, the methods that i give access to developer and developer can call the JNI method to communicate with the SDK.
Can any one tell me that is this the right way to do so?
Or is there any other method by which i can achive this?