Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
 protected void onResume() {
   super.onResume();
   if (title.getTheme() != SettingUtil.getTheme()) {
     Intent intent = new Intent(this, this.getClass());
     finish();
     startActivity(intent);
   }
 }
Exemplo n.º 3
0
 @Override
 protected void onDestroy() {
   super.onDestroy();
   SettingUtil.saveSettings();
 }