View RSS Feed

Shared Preferences

  1. How to access Android Application Preferences?

    by , 02-11-2012 at 10:51 AM
    You can use getSharedPreferences() method of your application context to get your application preferences. Also SharedPreferences class support saving of application data like configuration settings. You need to assign each SharedPreferences object a different and unique name that enables you to arrange preference values in different categories and can store all preferences in on large unnamed set.

    For example, if you are interested in storing user name and game statistics like how ...