cocoscreator

Exporting cocos2d Android application as aar and calling its Activity from another project

荒凉一梦 提交于 2020-07-10 10:25:18
问题 I had built a cocos2d Android project from cocos creator. (sample application) And I exported this android application as an android library (sample.aar) I created another Android application (MyDemo) and imported the android library (sample.aar) I am calling the AppActivity of (sample.aar) library from the MainActivity of (MyDemo) application on Button click aarButton.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { Intent intent = new Intent(); intent