Skip to content

Instantly share code, notes, and snippets.

@johnybot
Created January 5, 2015 23:26
Show Gist options
  • Save johnybot/2059d224516779750cd2 to your computer and use it in GitHub Desktop.
Save johnybot/2059d224516779750cd2 to your computer and use it in GitHub Desktop.
PreferencesActivity
public class PreferencesActivity extends BaseActionBarActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_preferences);
if (savedInstanceState == null) {
getFragmentManager().beginTransaction()
.add(R.id.container, new PreferencesFragment())
.commit();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment