I'm trying to locate shops in a map, the coordinates of this shops, I have to get it from the server, so I have two solutions, the first is to create SQLite database and update it when I get the informations, the second is to use SharedPreferences and store the data on it.
So I start with the second solution "SharedPreferences " because it will be fast and easy "when a user connect to the internet will get new data ,create new SharedPreferences and replace the old".
the question is I didn't find how to create in SharedPreferences contains multiple data like that :
shop 1
+name
+ coordinate X
+coordinates Y
shop 2
+name
+ coordinate X
+coordinates Y
shop 3
+name
+ coordinate X
+coordinates Y
...
I just found how to add for example your name or time (key/value) and update it
thank you