Пример #1
0
  @Override
  public void initSplash(ConfigSplash configSplash) {

    FirebaseMessaging.getInstance().subscribeToTopic(Define.APP_NAME);
    mDeviceToken = FirebaseInstanceId.getInstance().getToken();
    Log.d("token", "Refreshed token: " + mDeviceToken);

    mFirebaseAnalytics = FirebaseAnalytics.getInstance(this);

    Bundle bundle = new Bundle();
    bundle.putString(FirebaseAnalytics.Param.CONTENT_TYPE, "SplashScreen");
    mFirebaseAnalytics.logEvent(FirebaseAnalytics.Event.APP_OPEN, bundle);

    configSplash.setBackgroundColor(R.color.accent);
    configSplash.setAnimCircularRevealDuration(Define.SPLASH_SCREEN_BACKGROUND_TIME);
    configSplash.setRevealFlagX(Flags.REVEAL_RIGHT);
    configSplash.setRevealFlagY(Flags.REVEAL_BOTTOM);

    configSplash.setLogoSplash(R.drawable.logo_logishub);
    configSplash.setAnimLogoSplashDuration(Define.SPLASH_SCREEN_LOGO_TIME);
    configSplash.setAnimLogoSplashTechnique(Techniques.Bounce);

    configSplash.setTitleSplash("NeoSystems co., Ltd.");
    configSplash.setTitleTextColor(R.color.monsoon);
    configSplash.setTitleTextSize(16f);
    configSplash.setAnimTitleDuration(Define.SPLASH_SCREEN_TEXT_TIME);
    configSplash.setAnimTitleTechnique(Techniques.FadeIn);
  }
Пример #2
0
  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_about);
    // Firebase Analytics
    FirebaseAnalytics mFirebaseAnalytics = FirebaseAnalytics.getInstance(this);
    mFirebaseAnalytics.logEvent(Helper.EVENT_SHOW_ABOUT, new Bundle());

    TextView authors = (TextView) findViewById(R.id.about_authors);
    authors.setMovementMethod(android.text.method.LinkMovementMethod.getInstance());

    // easter egg
    clickCount = 0;
    ImageView logo = (ImageView) findViewById(R.id.deepspace_logo);
    logo.setOnClickListener(
        new View.OnClickListener() {
          @Override
          public void onClick(View v) {
            if (clickCount >= 5) {
              Snackbar.make(
                      findViewById(R.id.about_activity),
                      R.string.wgs_assitance,
                      Snackbar.LENGTH_LONG)
                  .show();
              clickCount = 0;
            } else {
              clickCount++;
            }
          }
        });
  }
  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_card_details);
    Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
    setSupportActionBar(toolbar);
    this.context = this;

    container = (LinearLayout) findViewById(R.id.container);

    learnApiImplements = LazzyBeeSingleton.learnApiImplements;

    _initSettingUser();

    mViewPager = (ViewPager) findViewById(R.id.viewpager);
    mSlidingTabLayout = (SlidingTabLayout) findViewById(R.id.sliding_tabs);

    getSupportActionBar().setDisplayHomeAsUpEnabled(true);

    _displayCard(getCarID());

    _initAdView();

    _trackerApplication();

    FirebaseAnalytics firebaseAnalytics = FirebaseAnalytics.getInstance(this);
    firebaseAnalytics.logEvent(LazzyBeeShare.FA_OPEN_DICTIONARY_VIEW_WORD, new Bundle());
  }
 @Override
 public void reportScreen() {
   setScreenName();
   Bundle bundle = createBaseEventBundle();
   mAnalytics.logEvent(EVENT_VIEW, bundle);
   Timber.d("GAnalytics Screen tracked: %s", mScreenName);
 }
Пример #5
0
 public static void doHeartbeat(FirebaseAnalytics firebaseAnalytics) {
   final String HEARTBEAT = "HEARTBEAT";
   Bundle bundle = new Bundle();
   bundle.putString(HEARTBEAT, HEARTBEAT);
   firebaseAnalytics.logEvent(HEARTBEAT, bundle);
 }
 protected void reportEvent(String event, Bundle bundle) {
   mAnalytics.logEvent(event, bundle);
   Timber.d("GAnalytics Event tracked: %s - %s", mScreenName, bundle.toString());
 }
 /**
  * Tracks an event
  *
  * @param event Action to track
  */
 protected void reportEvent(String event) {
   Bundle bundle = createBaseEventBundle();
   mAnalytics.logEvent(event, bundle);
   Timber.d("GAnalytics Event tracked: %s - %s", mScreenName, event);
 }