Back to project page notes.
The source code is released under:
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE Version 2, December 2004 Copyright (C) 2004 Sam Hocevar <sam@hocevar.net> Everyone is permitted to copy and distribute verbatim or...
If you think the Android project notes 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.iliakplv.notes.gui.settings; /*from w ww . j ava2 s .c o m*/ import android.os.Bundle; import android.preference.PreferenceActivity; import android.preference.PreferenceManager; import com.iliakplv.notes.R; public class SettingsActivity extends PreferenceActivity { private static final int PREFERENCES = R.xml.preferences; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); //noinspection deprecation addPreferencesFromResource(PREFERENCES); PreferenceManager.setDefaultValues(this, PREFERENCES, false); } }