@Override public void onCreate() { super.onCreate(); // set provider authority CONTENT_AUTHORITY = getPackageName() + ".provider"; // initialize settings on first run PreferenceManager.setDefaultValues(this, R.xml.settings_basic, false); PreferenceManager.setDefaultValues(this, R.xml.settings_advanced, false); // ensure the notifications service is started (we also restart it on // boot) Utils.runNotificationService(this); // load the current theme into a global variable final String theme = PreferenceManager.getDefaultSharedPreferences(this) .getString(SeriesGuidePreferences.KEY_THEME, "0"); Utils.updateTheme(theme); // set a context for Google Analytics EasyTracker.getInstance().setContext(getApplicationContext()); }