What is the difference between getDefaultSharedPreferences and getSharedPreferences in Android? Can anyone please explain?
getDefaultSharedPreferences
getSharedPreferences
There's a 3rd function as well:
public SharedPreferences Activity.getPreferences(int mode) {}
See my question and answer here: Mess with the shared preferences of android - which function to use?