I have an Array called Upvalthat has 16 Integer values that I would like to store in my SharedPreferences without creating individual ones for each, but SharedPrefernces won’t allow Array’s, what is the simplest way of doing this? The declaration looks something like this:
Integer[] UpVal = new Integer[16];
You can store it as a String by transforming it:
To get it back and convert a String to an Integer array is trivial.