Chapter 8
Storing and Retrieving Data
In This Chapter
• Introduction to SharedPreferences
• Possibilities of local storage
• Working with external data
• Saving and reading recipes in your app
Of all the apps you have opened more than once on any device, how many remember nothing about you? Very few. Reopening the solitaire app takes you back to the last game you started. Opening the phone app returns you to your last call. More than that, these apps remember not just the last activity you used, but frequently all your activities. Photo apps would not be very useful if they did not collect and store all the pictures you took with the camera.
When you open the Contacts app, you expect it to contain the same information as the last time you used ...
Get The Complete Idiot's Guide to Android App Development 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.