Use this API to set the app ID where you'll be sending data. It can be used to switch between projects or between your production and development environments.

init initializes Heap tracking on Android. It should be called only once per app open.

Heap.init(getApplicationContext(), "YOUR_APP_ID");
Heap.init(applicationContext, "YOUR_APP_ID")
  1. context: the application context for the Android app
  2. appId: the appId corresponding to one of your projects
Did you find what you were looking for?
Thumb up Thumb down