Android : Are shared preferences stored in memory during runtime?

on Tuesday, April 14, 2015


Are shared preferences in Android always read at startup and stored in memory during runtime? If not, are there more efficient ways to read preferences than this?



settings = getSharedPreferences("myPrefsFile", 0);
int answer = settings.getInt("ULTIMATE_QUESTION", 42);

0 comments:

Post a Comment