25-Oct-14 (Created: 25-Oct-14) | More in 'Android Data Storage'

How to use Gson and JSON for storing application state

You can represent the data storage needs of your application as a root level java object. Then use GSON to convert it to a JSON string. Once available as a string you can store it either in the shared preferences or in the private storage. Details, links, and code snippets follow.