Search code examples
androidpreferencesandroid-preferences

Android store array in preferences


I know only primitives can be stored in the android preferences, but do arrays count? Can I store an array of, say, Strings or booleans in an android preference?


Solution

  • Only if you turn the array into a string.