package uk.co.jarofgreen.cityoutdoors.UI;

import uk.co.jarofgreen.cityoutdoors.R;
import android.app.ListActivity;
import android.content.SharedPreferences;
import android.preference.PreferenceManager;
import android.widget.TextView;

public class BaseListActivity extends ListActivity {



	
}

@@ -36,16 +36,75 @@
 rs.UI;%0A%0A
+import com.google.analytics.tracking.android.EasyTracker;%0A%0A
 import u
@@ -343,13 +343,487 @@
 ity %7B%0A%0A%0A
+%09private boolean analyticsEnabled = true;%0A%0A%09@Override%0A%09public void onStart() %7B%09%09%0A%09%09super.onStart();%0A%09%09SharedPreferences settings=PreferenceManager.getDefaultSharedPreferences(this);%0A%09%09analyticsEnabled = (settings.getString(%22analyticsEnabled%22, %22yes%22).compareTo(%22yes%22) == 0);%0A%09%09if (analyticsEnabled) EasyTracker.getInstance().activityStart(this);%0A%09%7D%0A%0A%09@Override%0A%09public void onStop() %7B%0A%09%09super.onStop();%0A%09%09if (analyticsEnabled) EasyTracker.getInstance().activityStop(this);%0A%09%7D
 %0A%09%0A%7D%0A

Add Google Analytics tracking to the list screens