Back to project page TheNewBoston.
The source code is released under:
Eclipse Public License - v 1.0 THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS ECLIPSE PUBLIC LICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THE PROGRAM CONSTITUTES RECI...
If you think the Android project TheNewBoston 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.homelysoft.thenewboston; //w ww .j av a2s .c o m import android.os.Bundle; import android.preference.PreferenceActivity; public class Preferences extends PreferenceActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); /* * if (Build.VERSION.SDK_INT < Build.VERSION_CODES.HONEYCOMB) { * onCreatePreferenceActivity(); } else { onCreatePreferenceFragment(); * } */ onCreatePreferenceActivity(); } /** * Wraps legacy {@link #onCreate(Bundle)} code for Android < 3 (i.e. API lvl * < 11). */ @SuppressWarnings("deprecation") private void onCreatePreferenceActivity() { addPreferencesFromResource(R.xml.preferences); } /* *//** * Wraps {@link #onCreate(Bundle)} code for Android >= 3 (i.e. API lvl >= * 11). */ /* * @TargetApi(Build.VERSION_CODES.HONEYCOMB) private void * onCreatePreferenceFragment() { getFragmentManager().beginTransaction() * .replace(android.R.id.content, new MyPreferenceFragment ()) .commit(); } */ }