Android array to Sharedpreferences with Gson
问题 I need to create an array of the last 5 call dates. I know that I have to save the date on the array but I don't know how to reorder the other records to keep this last call date the 1st record. And always maintain only 5 records The Goal is to save that last call string and add to the array, after that I reorder to and maintain only the 5 records, after that I use FlexJson to make a string and save on sharedpreferences. Anyone have this full process? Here what I'm doing but is throwing