Thursday, 15 August 2013

How can I save preferences in multiple files?

How can I save preferences in multiple files?

I am creating my preferences screen as per:
http://developer.android.com/reference/android/preference/PreferenceFragment.html
How can I use this to save preferences in different files?
From what I've read, I can use context.getSharedPreferences(String name,
int mode) to specify which file the preferences should be read from, but I
don't know how to get it to save to that file in the first place.
How can I accomplish this?

No comments:

Post a Comment