The AdDash Android SDK is designed to be an easy-to-use way to get analytics out of your apps.
The quickest way in:
- Take all the dependencies and put them in your project's lib/ directory:
-
Go to your project properties, to "Java Build Path", and add those four JAR files to the "Libraries" tab using the "Add JARs..." button
-
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.
- If you want your own custom events, put in one of these wherever you want to dispatch one:
mAdDash.reportCustomEvent(<event name>, <event detail>);
- Enjoy all your analytics!