JSON for On-Device Persistence

  • Satya Komatineni
  • Dave MacLean


A key aspect of mobile applications or games is the need for persistence on the device. Android provides a number of very good options for persistence, including relational storage. However, all the provided mechanisms that use the relational storage take a sizable amount of development time. This chapter provides a shortcut for a number of simple to medium persistence needs. The approach uses GSON/JSON technology to store object trees directly in non-SQL storage, such as the shared preferences and internal file storage means on the device.


Shared Orientation Internal File Shared Preferences File JSON String ApplicationContext 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.

Copyright information

© Satya Komatineni 2013

Authors and Affiliations

  • Satya Komatineni
    • 1
  • Dave MacLean
    • 1
  1. 1.FloridaUSA

Personalised recommendations