Example usage for Java android.preference PreferenceManager fields, constructors, methods, implement or subclass
The text is from its open source code.
PreferenceScreen | createPreferenceScreen(Context context) |
Preference | findPreference(CharSequence key) Finds a Preference based on its key. |
SharedPreferences | getDefaultSharedPreferences(Context context) Gets a SharedPreferences instance that points to the default file that is used by the preference framework in the given context. |
String | getDefaultSharedPreferencesName(Context context) Returns the name used for storing default shared preferences. |
SharedPreferences | getSharedPreferences() Gets a SharedPreferences instance that preferences managed by this will use. |
void | setDefaultValues(Context context, @XmlRes int resId, boolean readAgain) Sets the default values from an XML preference file by reading the values defined by each Preference item's android:defaultValue attribute. |
void | setDefaultValues(Context context, String sharedPreferencesName, int sharedPreferencesMode, int resId, boolean readAgain) Similar to #setDefaultValues(Context,int,boolean) but allows the client to provide the filename and mode of the shared preferences file. |
void | setSharedPreferencesMode(int sharedPreferencesMode) Sets the mode of the SharedPreferences file that preferences managed by this will use. |
void | setSharedPreferencesName(String sharedPreferencesName) Sets the name of the SharedPreferences file that preferences managed by this will use. |