I have a list of unique values, lets say for example city names (Japan, Paris) and it could be modified by the application later to be (Paris, New York ).
what i need is a away to save them and then retrive them. How could this be done and how could i insure if its thread/process safe? (Set
Serialization
, JSON
file, Preferences ?)
How could i save a unique list of values in Android?
199 Views Asked by Jimmy At
2
There are 2 best solutions below
1

You could use sqlite tables for this.
This page describes an example of how to do this. http://www.screaming-penguin.com/node/7742
all you need is a persistant storage of data . so use any of these approches: