Press on the image to return to the main documentation page.
PreferenceActivity
PreferenceActivity library allows you to show the standard settings interface and provides an easy way to handle applications settings. This library requires you to modify AndroidManifest.xml. See the tutorial for more information.
Adds a preference entry with a check box. The entry values can be either True or False. Key - The preference key associated with the value. Title - Entry title. Summary - Entry summary (second row). DefaultValue - The default value of this preference entry if the key does not already exist.
Adds a preference entry which allows the user to enter free text. Key - The preference key associated with the value. Title - Entry title. Summary - Entry summary (second row). DefaultValue - The default value of this preference entry if the key does not already exist.
Adds a preference entry which allows the user to choose a single item out of a list. Key - The preference key associated with the value. Title - Entry title. Summary - Entry summary (second row). DefaultValue - The default value of this preference entry if the key does not already exist. Should match one of the values. Values - A list of strings with the possible values.
Adds a PreferenceCategory. A preference category is made of a title and a group of entries. Note that a PreferenceCategory cannot hold other PreferenceCategories.
Returns a Map with all the Keys and Values. Note that changes to this map will not affect the stored values.
GetBoolean (KeyAsString) AsBoolean
Returns the Boolean value mapped to the given key. Returns False is the key is not found.
GetString (KeyAsString) AsString
Returns the String value mapped to the given key. Returns an empty string if the key is not found.
GetUpdatedKeysAsList
Returns a list with the keys that were updated since the last call to GetUpdatedKeys. Note that the updated keys may include keys with unchanged values.
Adds a preference entry with a check box. The entry values can be either True or False. Key - The preference key associated with the value. Title - Entry title. Summary - Entry summary (second row). DefaultValue - The default value of this preference entry if the key does not already exist.
Adds a preference entry which allows the user to enter free text. Key - The preference key associated with the value. Title - Entry title. Summary - Entry summary (second row). DefaultValue - The default value of this preference entry if the key does not already exist.
Adds a preference entry which allows the user to choose a single item out of a list. Key - The preference key associated with the value. Title - Entry title. Summary - Entry summary (second row). DefaultValue - The default value of this preference entry if the key does not already exist. Should match one of the values. Values - A list of strings with the possible values.
Adds a PreferenceCategory. A preference category is made of a title and a group of entries. Note that a PreferenceCategory cannot hold other PreferenceCategories.