Skip to content Skip to sidebar Skip to footer

How To Configure Application Settings In Android?

In my application I have to keep some setting options for a user, like currency type, language, Calendar view (Either Calendar or List) etc. Here I am confused whether I have to c

Solution 1:

you can use android shared preferences to store a users preferences. Alternatively you can store "global" variables if you create a Application instance which has static or instance variables to access (but these values can be lost if your Activity is destroyed)

The answer on this thread has details on global application to store application wide variables

Hope that helps

Solution 2:

Solution 3:

The solution would be to use shared preference

You can also look into PreferenceActivity which helps in building a setting page.

Post a Comment for "How To Configure Application Settings In Android?"