015142ffd3076e7fabaa92deae2ce161fb338f0b
[JavaForFun] /
1 package com.weather.information.activity;
2
3 import android.app.ActionBar;
4 import android.app.Activity;
5 import android.os.Bundle;
6
7 import com.weather.information.R;
8 import com.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 }