游戏中如何调用android 代码

yoyo
Sat, 18 Jun 2016 12:11:11 +0000

var className = “org/cocos2dx/javascript/AppActivity”;
var methodName = “exitGame”;
var methodSignature = “()V”;
jsb.reflection.callStaticMethod(className, methodName, methodSignature);

appActivity加了 对应的方法，但无效

阅读整个主题