1e9b0d498aa7b46be1a452d2584489003257bb25
[JavaForFun] /
1 package de.example.exampletdd;
2
3 import android.app.ActionBar;
4 import android.app.Activity;
5 import android.os.Bundle;
6 import de.example.exampletdd.fragment.preferences.WeatherInformationPreferencesFragment;
7
8 public class WeatherInformationPreferencesActivity extends Activity {
9
10     @Override
11     protected void onCreate(final Bundle savedInstanceState) {
12         super.onCreate(savedInstanceState);
13
14         this.getFragmentManager()
15         .beginTransaction()
16         .replace(android.R.id.content,
17                 new WeatherInformationPreferencesFragment()).commit();
18     }
19
20     @Override
21     public void onResume() {
22         super.onResume();
23
24         final ActionBar actionBar = this.getActionBar();
25         actionBar.setTitle(this.getString(R.string.weather_preferences_action_settings));
26     }
27 }