Back to project page MythTrack.
The source code is released under:
MIT License
If you think the Android project MythTrack listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
/** * SettingsActivity serves as a container for the SettingsFragment. */*from www.j a va2 s . c om*/ * @author Nolan Jurgens */ package nolanjurgens.mythtrack.app; // IMPORTS ///////////////////////////////////////////////////////////////////////////////////////// import android.app.Activity; import android.app.FragmentTransaction; import android.os.Bundle; import nolanjurgens.mythtrack.R; //////////////////////////////////////////////////////////////////////////////////////////////////// // CLASS - SettingsActivity // //////////////////////////////////////////////////////////////////////////////////////////////////// public class SettingsActivity extends Activity { // METHODS /////////////////////////////////////////////////////////////////////////////////////// /** * Called when the activity is launched. * @param savedInstanceState Saved instance information. */ @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // Set the user interface. setContentView(R.layout.activity_settings); // Don't add fragments if resuming from a previous state. if(savedInstanceState != null) { return; } // Add the settings fragment. FragmentTransaction transaction = getFragmentManager().beginTransaction(); transaction.add(R.id.settings_fragment_container, new SettingsFragment(), "SettingsFragment"); transaction.commit(); } }