@Override
  public void onCreate() {
    super.onCreate();

    /*
     * Replace API_KEY with your unique API key. Please, read official documentation how to obtain one:
     * {@link https://tech.yandex.com/metrica-mobile-sdk/doc/mobile-sdk-dg/concepts/android-initialize-docpage}
     */
    YandexMetrica.activate(getApplicationContext(), API_KEY);
  }
Ejemplo n.º 2
0
 @Override
 public void onRefresh() {
   YandexMetrica.reportEvent(AppConstants.METRICA_REFRESH_SECTION);
   updateSections();
 }