O'Reilly logo

Learning Mobile App Development: A Hands-on Guide to Building Apps with iOS and Android by Michael Eierman, Jakob Iversen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using Preferences

SharedPreferences are an easy way to store bits of information that need to persist over the life cycle of an app. In the MyContactList app, preferences are set in the ContactSettingsActivity. This activity is developed so that you can learn how to use SharedPreferences. To do so, the layout is first coded and then the Java file is edited.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required