Summary

This chapter talked about managing preferences in Android:

  • Types of preferences available
  • Reading the current values of preferences into your application
  • Setting default values from embedded code and by writing the default values from the XML file to the saved preferences file
  • Organizing preferences into groups, and defining dependencies between preferences
  • Programmatically manipulating preferences
  • Using the preferences framework to save and restore information from an activity across invocations
  • Creating a custom preference

Get Pro Android 4 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.