Press on the image to return to the main documentation page.
AHPreferenceActivity
Written by Erel Uziel / Markus Stipp
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. SummaryOn - Entry summary (second row). SummaryOff - Entry summary if checkbox is not checked (Set to empty string to always show SummaryOn text) DefaultValue - The default value of this preference entry if the key does not already exist. Dependency - A key of a preference this preference entry depends on.
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. Dependency - A key of a preference this preference entry depends on.
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. Dependency - A key of a preference this preference entry depends on. Values - A list of strings with the possible values.
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 value keys. Dependency - A key of a preference this preference entry depends on. Values - A map with the possible values. The key of the map is used as the value for the preference and the value is displayed in the list.
Adds a preference entry which allows the user to enter a password. Be aware that the password is saved uncrypted in the preferences file! 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. Dependency - A key of a preference this preference entry depends on.
Adds a PreferenceCategory. A preference category is made of a title and a group of entries. Note that a PreferenceCategory cannot hold other PreferenceCategories.
Adds a preference entry which allows the user to choose a ring tone 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 value keys. Dependency - A key of a preference this preference entry depends on. RingToneType - Type of the Ringtone. Use RT_RINGTONE, RT_NOTIFICATION, RT_ALARM.
CreateIntentAsandroid.content.Intent
Creates the Intent object that is required for showing the PreferencesActivity. Example:StartActivity(PreferenceScreen1.CreateIntent)
Initialize (TitleAsString)
Initializes the object and sets the category title.
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. SummaryOn - Entry summary (second row). SummaryOff - Entry summary if checkbox is not checked (Set to empty string to always show SummaryOn text) DefaultValue - The default value of this preference entry if the key does not already exist. Dependency - A key of a preference this preference entry depends on.
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. Dependency - A key of a preference this preference entry depends on.
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. Dependency - A key of a preference this preference entry depends on. Values - A list of strings with the possible values.
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 value keys. Dependency - A key of a preference this preference entry depends on. Values - A map with the possible values. The key of the map is used as the value for the preference and the value is displayed in the list.
Adds a preference entry which allows the user to enter a password. Be aware that the password is saved uncrypted in the preferences file! 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. Dependency - A key of a preference this preference entry depends on.
Adds a PreferenceCategory. A preference category is made of a title and a group of entries. Note that a PreferenceCategory cannot hold other PreferenceCategories.
Adds a preference entry which allows the user to choose a ring tone 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 value keys. Dependency - A key of a preference this preference entry depends on. RingToneType - Type of the Ringtone. Use RT_RINGTONE, RT_NOTIFICATION, RT_ALARM.
CreateIntentAsandroid.content.Intent
Creates the Intent object that is required for showing the PreferencesActivity. Example:StartActivity(PreferenceScreen1.CreateIntent)
Initialize (TitleAsString, SummaryAsString)
Initializes the object and sets the title that will show. The summary will show for secondary PreferenceScreens.