Skip to content

Cannot change name of sharedPreference #27

Description

@kirtan96

I had different named sharedPreferences for my Android app: "myPrefs", "userPrefs", etc. When I used this library to get sharedPreferences from "myPrefs", I called:
SharedPreferences.setName('myPrefs');
Using this, I was able to get key -> value pairs in "myPrefs". But when I wanted to change the sharedPreference to "userPrefs" and I call the same code with "userPrefs", the sharedPreference does not change. It is stuck at "myPrefs".

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions