I read Simon Lin’s guide on how to integrate openfeint into android (http://blog.molioapp.com/2011/11/openfeint-and-admob-integrated-with.html) and I got the gist of it:
~~Call a JNI function from Java side which allows JNI to save the JNIEnv for later use in c++
~~c++ calls the JNI functions with the saved-in-memory JNIEnv variables.
-JNI calls Java, which calls the openfeint SDK and API.
But I do not get how does cocos2dx call the JNI functions (step two). In the guide, they had it defined as static methods in a class, but how do you reference it from your cocos2d-x games? Am I missing something in the Android .mk files? I do not know how to make them connect together (cocos2d-x and JNI). Can anyone help me with this?