Exemple #1
0
  /**
   * Collect app metrics on Flurry
   *
   * @see android.app.Activity#onStop()
   */
  @Override
  protected void onStop() {
    // Log.d(TAG, "onStop() called");

    super.onStop();

    FlurryAgent.onEndSession(this);
    lifePublish.onStop();
  }
Exemple #2
0
  /**
   * Collect app metrics on Flurry
   *
   * @see android.app.Activity#onStart()
   */
  @Override
  protected void onStart() {
    // Log.d(TAG, "onStart() called");

    super.onStart();

    FlurryAgent.onStartSession(this, "XBPNNCR4T72PEBX17GKF");
    lifePublish.onStart();
  }
Exemple #3
0
  /*
   * (non-Javadoc)
   *
   * @see android.app.Activity#onPause()
   */
  @Override
  protected void onPause() {
    super.onPause();

    saveInfoFields();
    ((GaggleApplication) getApplication()).getGpsLogger().setObserver(null);

    // Log.d(TAG, "onPause() called");
    lifePublish.onPause();
  }
Exemple #4
0
  /*
   * (non-Javadoc)
   *
   * @see android.app.Activity#onResume()
   */
  @Override
  protected void onResume() {
    // TODO Auto-generated method stub
    super.onResume();

    // Log.d(TAG, "onResume() called");
    lifePublish.onResume();

    ((GaggleApplication) getApplication()).getGpsLogger().setObserver(this);

    // Restore the toggle to the correct state. FIXME, why doesn't this
    // state get stored automatically by android?
    // Super skanky way to find our possibly not yet existing service
    showLoggingStatus();
  }
Exemple #5
0
 @Override
 public void removeLifeCycleHandler(LifeCycleHandler h) {
   lifePublish.removeLifeCycleHandler(h);
 }
Exemple #6
0
 @Override
 public void addLifeCycleHandler(LifeCycleHandler h) {
   lifePublish.addLifeCycleHandler(h);
 }