Reputation: 221
I'm stuck on how I should go about storing some user data in my application I'm building.
The data being stored is effectively a list of items, like a list of car objects. The application must be able to store multiple lists.
Now i know there's several ways to store data, but I'm unsure what would be the best approach to storing these multiple lists.
so far i can only think of:
1) create table(s) for the lists.
2) storing each list as either a text file or xml file.
if anyone can explain what would be the best approach and if there are better alternatives what they would be.
Upvotes: 0
Views: 2338
Reputation: 14226
There are basically a few options:
Pros/Cons:
So in the end, it depends on your use case.
Further readings: https://developer.android.com/guide/topics/data/data-storage.html
Upvotes: 1