In terms of context for what I'm doing, I have an ArrayList with some String[]-typed contacts in it (has a {name, phone number, phone type} per entry) for the native android address book feature. I want to store this list of contacts, and then bring them back up whenever a new list of contacts is added so that I can compare the two for differences. However, I'm not entirely sure what I could do to store one for later use. I was going to use SharedPreferences, but at the most it only takes a Set, not an ArrayList; plus, since it's contacts, a Set may prove to be problematic in the event of any duplicate values.
The other option I considered was some sort of conversion into another type that SharedPreferences accepts, then converting it back after retrieving it. I had to put a pin in that as well because a lot of those methods require external libraries that I cannot add to this project (for dependencies).
Are there any native methods I could use in order to properly store an ArrayList<String[]> for later comparisons?