/** * 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(); }
/** * 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(); }
/* * (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(); }
/* * (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(); }
@Override public void removeLifeCycleHandler(LifeCycleHandler h) { lifePublish.removeLifeCycleHandler(h); }
@Override public void addLifeCycleHandler(LifeCycleHandler h) { lifePublish.addLifeCycleHandler(h); }