#include #include #include "jni/JniHelper.h" #include #include using namespace std; using namespace cocos2d; static std::string className = "org/cocos2dx/lua/AppActivity"; void setActivityPathForAndroid(const std::string& path) { className = path; } string getIPAddress() { return JniHelper::callStaticStringMethod(className, "getLocalIpAddress"); }