예제 #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();
  }
예제 #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();
  }
예제 #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();
  }
예제 #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();
  }
예제 #5
0
 @Override
 public void removeLifeCycleHandler(LifeCycleHandler h) {
   lifePublish.removeLifeCycleHandler(h);
 }
예제 #6
0
 @Override
 public void addLifeCycleHandler(LifeCycleHandler h) {
   lifePublish.addLifeCycleHandler(h);
 }