getDefaultSharedPreferences

Gets a SharedPreferences instance that points to the default file that is used by the preference framework in the given context.

Return

A SharedPreferences instance that can be used to retrieve and listen to values of the preferences

Parameters

context

The context of the preferences whose values are wanted