예제 #1
0
 @Override
 public void onStart() {
   super.onStart();
   Analytics.getInstance(this).trackPageView(Analytics.EDIT_SETTINGS_ACTIVITY);
 }
예제 #2
0
 /**
  * Updates preferences on singletons, so we don't have to register preference change listeners for
  * them.
  */
 private void updatePreferences() {
   Log.d(TAG, "Updating preferences");
   Analytics.getInstance(this).setEnabled(findPreference(Analytics.PREF_KEY).isEnabled());
 }