How fast are SharedPreferences? Is there a way to put them in memory for reading? I have a small amount of data that a ListView has to query to d
SharedPreferences
ListView
Is there a way to put them in memory for reading?
They are in memory, after the first reference. The first time you retrieve a specific SharedPreferences (e.g., PreferenceManager.getDefaultSharedPreferences()), the data is loaded from disk, and kept around.
PreferenceManager.getDefaultSharedPreferences()