Skip to content

btrzupek/adDash-mobile-android

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

The AdDash Android SDK is designed to be an easy-to-use way to get analytics out of your apps.

The quickest way in:

  1. Take all the dependencies and put them in your project's lib/ directory:
  1. Go to your project properties, to "Java Build Path", and add those four JAR files to the "Libraries" tab using the "Add JARs..." button

  2. In the onCreate() method of your app's main Activity:

private AdDash mAdDash;

...

mAdDash = AdDash.getInstance(getApplicationContext());
mAdDash.newSession();
mAdDash.setAdvertiserIdentifier(<advertiser id>, <app private key>);

That will get you first-run events and app upgrade events, which will show up in your Events dashboard.

Note: In any other Activities, you don't need to call newSession() or setAdvertiserIdentifier(). All you need is AdDash.getInstance(getApplicationContext()); and as long as you've set your advertiser identifier previously, you're good.

  1. If you want your own custom events, put in one of these wherever you want to dispatch one:
mAdDash.reportCustomEvent(<event name>, <event detail>);
  1. Enjoy all your analytics!

About

Android version of SDK

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages