1. Home
  2. SDK Android
  3. Initialization

Initialization

The BEAR SDK must be configured in your android.app.Application class using the com.bear.common.sdk.BearSdk class.

public class App Application {
    @Override
    public void onCreate() {
        super.onCreate();
        BearSdk.getInstance(this).init("…");
    }
}

You must call the BearSdk.init method using a secret key as parameter. You can check the sample app and use its secret key during your development cycle. However you must use your own secret key before submitting your application to production (this secret key will be provided by BEAR).

Was this article helpful to you? Yes No

How can we help?