Libgdx help

Hi,

I have a libgdx based game and I m confused about how to show StartApp interstitial on every game over. Since the game logic is written in xyz project and xyz-android project only has one activity which makes use of main project.

How can I integrate StartApp ads which require an activity to initialize in this case?

You need to create an interface that defines functionality which the Android Activity can then provide. There’s a good guide on how to do it here: https://github.com/libgdx/libgdx/wiki/Admob-in-libgdx

Scroll about halfway down to where it discusses “IActivityRequestHandler.java”

Thank you informed me.