Java android.preference PreferenceManager fields, constructors, methods, implement or subclass

Example usage for Java android.preference PreferenceManager fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for android.preference PreferenceManager.

The text is from its open source code.

Field

Method

PreferenceScreencreatePreferenceScreen(Context context)
PreferencefindPreference(CharSequence key)
Finds a Preference based on its key.
SharedPreferencesgetDefaultSharedPreferences(Context context)
Gets a SharedPreferences instance that points to the default file that is used by the preference framework in the given context.
StringgetDefaultSharedPreferencesName(Context context)
Returns the name used for storing default shared preferences.
SharedPreferencesgetSharedPreferences()
Gets a SharedPreferences instance that preferences managed by this will use.
voidsetDefaultValues(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.
voidsetDefaultValues(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.
voidsetSharedPreferencesMode(int sharedPreferencesMode)
Sets the mode of the SharedPreferences file that preferences managed by this will use.
voidsetSharedPreferencesName(String sharedPreferencesName)
Sets the name of the SharedPreferences file that preferences managed by this will use.