Search code examples
androidsharedpreferencesoptionmenu

Android Storing Application Settings Locally


We are creating an app where i want to store certain settings locally on the device.

The settings will be

  1. Account Settings
  2. Notification Settings
  3. Help
  4. About
  5. Logout

I came across this on foursquare and Twitter Application.. when you go thru Options Menu and to Settings like below

enter image description here enter image description here

How can i implement similarly on my application


Solution

  • To store such settings use SharedPreferences. This is the most convenient way. You can also add a PreferencesActivity to make the second screen you posted.