Pages

Monday, October 20, 2014

Libgdx and StartApp integration. Exit wall.

Hi! Couldnt find an understandable guide of how to integrate StartApp ads into an libgdx project, so i will share what i found.

First of all you need to register at their website  and download their sdk. The StartAppInApp-2.4.6.jar. And add it to the android project of your game - just drag or copy/paste the file in the "libs" folder. Also register your app.

Then just follow this guide StartApp github

1)Add permissions and two activities to androidmanifest
2)Add code to your androidlauncher:

  • declare private StartAppAd startAppAd = new StartAppAd(this);
  • in onCreate method StartAppSDK.init(this, "your id", "app id", true); 
  • and add onResume, onPause, onBackPressed methods as in the guide. 
Now your app will show app wall on exit. 

No comments:

Post a Comment