The Android framework provides several options to store application data. There is no single best storage option, as the options depend on the application and the use cases. This chapter briefly goes through each of the storage options offered by the Android framework, such as simple files, shared preferences, and the relational databases. Later in this chapter, we will explore Android Backup Services as a mechanism to back up and restore application data to the cloud in order make it persist between device upgrades and device resets.
As with all platforms, the easiest way to persist data on the Android platform is by saving the data in files on the device’s storage. You can achieve this with file I/O APIs ...
Get Android Quick APIs Reference now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.