How can I control which file should be used by a PreferencesFragment
for reading and writing settings? I can't find anything about that in the docs. If that can't be controlled via code or XML resources, are there any guarantees, what the file is called, so I can open it explicitly using
Activity.getSharedPreferences(String name, int mode)
Thanks.
You have to manipulate the
PreferenceManager
of theSettingsFragment
. This is what it looks likeThen you can access this settings file outside of the fragment like this: