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