DataStructure & Data save/retrieval methods
- The arraylist will be saved to SharedPreferences with Google Gson library
- Shared preferences just stores primitive java type so it’s sufficient here
- Can easily save and load the data
- It’s like a built in serializer so it’s easy to use
- So far the implementation of the app is meant for one day use, so the ArrayList is just fine.
- Even if in the future, the date is added, unless it’s getting data from years and years, ArrayList is still fine too.