You should run the initialization code in either the onCreate method of your class that extends Application, or in the onCreate method of your main activity class.
Verifying Your Instrumentation
To verify your Freshpaint installation, navigate to the Freshpaint Live View. After opening your app, you should see an Application Opened event show up in Live View:
Note, the Freshpaint SDK batches events, so it can take a minute for the event to show up.