Skip to content
pads edited this page May 27, 2011 · 2 revisions

Background

  • Preferences are defined in preferences.xml
  • Can nest preference screens (e.g. a main basic prefs screen contains a nested "advanced" prefs screen)
  • Preference types for text/password/checkbox/radio
  • Activity can implement OnSharedPreferenceChangeListener and register to be notified when preferences are changed
  • More complex data structures can be stored in an sqlite database. Any app can create an sqlite database
  • Access preference values using SharedPreferences accessed via PreferenceManager utility class

Example Code

Checkout the Preferences folder.

Further Reading

Clone this wiki locally