Checkout and open project with Android Studio.
All values are defined over AndroidManifest.xml and used from there.
Setup your environment with your credentials. Please insert your username, password and url here. For defuscation please follow our best practice documentation.
Statistics.instance(this).setUsername("sandbox");
Statistics.instance(this).setPassword("sandbox");
Statistics.instance(this).setServerFilePath("https://sandbox.vxstats.com/");
This is the global context, where you are currently on in your application. Just name it easy and with logical app structure to identify where the user stays.
Statistics.instance(this).page("Main");
When you would like to request a page with dynamic content please use this function.
Statistics.instance(this).event("action", "value");
To capture ads - correspondingly the shown ad.
Statistics.instance(this).ads("$campain");
To capture map shifts - correspondingly the new center.
Statistics.instance(this).move($latitude, $longitude);
To capture open websites or documents including the information which page or document has been requested.
Statistics.instance(this).open("$urlOrName");
To capture played files including the information which file/action has been played.
Statistics.instance(this).play("$urlOrName");
To capture searches including the information for which has been searched.
Statistics.instance(this).search("$search");
To capture when the device has been shaken.
Statistics.instance(this).shake();
To capture typed/touched actions.
Statistics.instance(this).touch("$action");
- API 19 4.4 and above
- API 14 4.0.1 buildable and theoretical possible