@Override protected void onSaveInstanceState(Bundle outState) { outState.putInt("theme", mThemeId); super.onSaveInstanceState(outState); }