public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setTheme(SettingUtil.getTheme()); this.setVolumeControlStream(AudioManager.STREAM_MUSIC); initContentView(R.layout.my_activity); title = (TitleLayout) findViewById(R.id.title); }
protected void onResume() { super.onResume(); if (title.getTheme() != SettingUtil.getTheme()) { Intent intent = new Intent(this, this.getClass()); finish(); startActivity(intent); } }