在appActivity中调用sdk界面时,需要在ui线程中进行调用:
public static void setLMenuBarVisible(final boolean isShow,final int pos) { mAppActivity.runOnUiThread(new Runnable() { @Override public void run() { if (isShow) { LCMSDK.showMenubar(mAppActivity,pos); } else { LCMSDK.hideMenubar(mAppActivity); } } }); }
结束当前应用需要调用:
AppActivity.this.finish(); System.exit(0);原文链接:https://www.f2er.com/cocos2dx/339370.html