0

I want to overwrite my whole SharedPreference data. Is it possible to do something like this?

    SharedPreferences settings = context
            .getSharedPreferences(PREFS_NAME, 0);

And do later on I would like to do...

    context.setSharedPreference(settings);
// Or something like this

I am having a hard time figuring out and finding how to rewrite the whole sharedPreference. Any ideas? Is it possible to do something like that?

Samet ÖZTOPRAK
  • 3,112
  • 3
  • 32
  • 33
Datenshi
  • 1,191
  • 5
  • 18
  • 56

0 Answers0