Preferences

Training » All Courses » Android » Preferences

[top] Duration

90 minutes.

[top] Outline

Your app often needs to store some user data for future use. For example, it needs to know user's login information for an online service, or other settings. Android framework offers a system for just doing that in form of Preferences. In this module, you will learn how to use preferences within your app. Topics include:

  • Overview of preferences
  • Preference resource: defining what you'll store locally
  • Preference activity: displaying the preference screen
  • Reading in the preference values
  • Programmatically editing the shared preferences
  • Registering for preference changes via a listener
  • Filesystem overview: where are the files stored and is it secure