Persisting Data
This chapter goes in depth about data persistence in Android. By the end of the chapter, you will know multiple ways to store (persist) data directly on a device and the frameworks accessible to do this. When dealing with a filesystem, you will know how it’s partitioned and how you can read and write files in different locations and use different frameworks.
In the previous chapter, you learned how to structure your code and save data. In the activity, you also had the opportunity to build a repository and use it to access and save data through Room. In this chapter, you will learn about alternative ways to persist data on a device through the Android filesystem and how it’s structured into external and internal memory.
You’ll also develop your understanding of read and write permissions, learn how to create the FileProvider
class to offer other apps access to your files, and learn how you can save those files without requesting permissions...