Back to project page oidarSample.
The source code is released under:
GNU General Public License
If you think the Android project oidarSample listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.oidar.activity; // w w w.j av a 2s . c om import android.os.Bundle; import android.view.Menu; import com.oidar.activity.base.BaseActivity; import com.oidar.fragment.SettingsFragment; /** * The activity for displaying our settings. */ public class SettingsActivity extends BaseActivity { /** * Called when the Activity is created. */ @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); getSupportFragmentManager() .beginTransaction() .replace(android.R.id.content, SettingsFragment.newInstance(), SettingsFragment.TAG) .commit(); } /** * Called to create our options menu. */ @Override public boolean onCreateOptionsMenu(Menu menu) { return true; } }