Quantcast
Channel: Cocos Forums - Latest topics
Viewing all articles
Browse latest Browse all 17070

Need help with integration of adTapsy :-)

$
0
0

@nichlaspro132 wrote:

Hi!

I am about to install adTapsy for android in eclipse. The instructions says this:
5. Configure AdTapsy Cocos2dx plugin

Set the JVM to the JNI helper in MyGame/proj.android/jni/hellocpp/main.cpp

#include "PluginJniHelper.h" // new import
void cocos_android_app_init (JNIEnv* env, jobject thiz) {
	LOGD("cocos_android_app_init");
	AppDelegate *pAppDelegate = new AppDelegate();
	// new code start
	JavaVM* vm;
	env->GetJavaVM(&vm);
	PluginJniHelper::setJavaVM(vm);
	// new code end
}

Copy AdTapsyCocosActivity in your project and let your AppActivity extend it
Initialize PluginWrapper in AppActivity.java onCreate method

 public class AppActivity extends AdTapsyCocosActivity {
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		PluginWrapper.init(this);
	}
}

I have gotten a java file called AdTapsyCocosActivity but they do not say where in my project I should import it to and I do not know how include it in my own AppActivity because it cant it..

Link: https://app.adtapsy.com/app/integration at step 5...

@SonarSystems You say that I have to extend your activity in my AppActivity but what now when I have to extend Adtapsy's activity, I can't extend to activities?

@Borislav_AdTapsy, I know that you should have the solution for this. Of course everyone is more than welcome to answer. Thanks!

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 17070

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>