Installing the Freshpaint Android SDK
To install the Freshpaint Android SDK, first add the following dependencies to your gradle file:
To import the SDK, use:
Then to initialize the SDK, you should run:
Freshpaint freshpaint = new Freshpaint.Builder(getApplicationContext(), "<your environment id>")
You should run the initialization code in either the
onCreatemethod of your class that extends Application, or in the
onCreatemethod of your main activity class.
Note, the Freshpaint SDK batches events, so it can take a minute for the event to show up.