I have 3 ArrayList
objects, I want to store it in the android application and I want to fetch them when application is running.
Also, I want the same order of elements as their in the ArrayList
Should I go with SharedPreferences
or is their any other approach to achieve it.
When I am trying it using SharedPreferences
, It uses HashSet
, and in that the order of the ArrayList
differs at the time of fetching it.
Tell me how do I achieve this without disturbing the order?