Abstract
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.
This is a preview of subscription content, log in via an institution.
Buying options
Tax calculation will be finalised at checkout
Purchases are for personal use only
Learn about institutional subscriptionsAuthor information
Authors and Affiliations
Rights and permissions
Copyright information
© 2013 Satya Komatineni
About this chapter
Cite this chapter
Komatineni, S., MacLean, D. (2013). JSON for On-Device Persistence. In: Expert Android. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4302-4951-1_4
Download citation
DOI: https://doi.org/10.1007/978-1-4302-4951-1_4
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4302-4950-4
Online ISBN: 978-1-4302-4951-1
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)