In this chapter you learned how to persist simple data within your applications and how to manage files and preferences.
After learning how to save the Activity instance data between sessions using the save and restore instance state handlers, you were introduced to Shared Preferences and the system Preference Screen framework. You used them to save instance values and user preferences that can be used across your application components.
Along the way you also learned to:
> Save and load files directly to and from the underlying file system.
> Include static files as external project resources.
In the next chapter you will learn how to persist more complex and structured information within your applications. As well as the techniques described in this chapter, Android provides fully featured relational databases (using the SQLite database library) that can be shared among applications by means of Content Providers. Both SQLite and Content Providers will be explored in the next chapter.
Was this article helpful?
Quick start guide to skyrocket your offline and online business success with mobile apps. If you know anything about mobile devices, you’ve probably heard that famous phrase coined by one of the mobile device’s most prolific creators proclaiming that there’s an app for pretty much everything.