Implement amazon ad and game circle wrapper for cocos2d-x
How to integrate:
-
copy "GameCircleSDK" folder to proj.android folder
-
copy "amazon-ads-5.1.236.jar" to proj.android/libs folder
-
copy "AmazonPlugin.java" to proj.android/src/com/freeman/cocos2dx folder
-
copy "AmazonWrapper.h" to Class folder
-
copy "AmazonWrapper.cpp" to proj.android/jni folder
-
edit Android.mk under proj.android/jni folder, add "AmazonWrapper.cpp"
-
edit AndroidManifest.xml, type in the content:
-
on the Activity call:
protected void onCreate(Bundle savedInstanceState){ super.onCreate(savedInstanceState); AmazonPlugin.onCreate(this); }
@Override public void onResume() { super.onResume(); AmazonPlugin.onResume(); }
@Override public void onPause() { super.onPause(); AmazonPlugin.onPause(); }
@Override public void onDestroy() { super.onDestroy(); AmazonPlugin.onDestroy(); }
-
import GameCircleSDK library