GorkemSahin GorkemSahin - 3 years ago 76
Android Question

How to keep save, update and view local data on Android?

I'm downloading a list of town and city names from a server as a JSON file and parse them to become objects/strings. I need to download this data only once when the app is launched for the first time after the download, save this data to local storage of the Android device to be used to fill spinner (dropdown/combo box) menus and update the data only when the user wants to/needs to. What is the best way to implement this?

Answer Source

As mentioned in comments -

You can save it in SQLlite DB if you are already using it. If its not too much data and your app doesn't use SQLlite anywhere, it might seem a lot of work and then you can save that in SharedPreference as well. Just dont try to store too much data in Shared Preference

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download