Join David Gassner for an in-depth discussion in this video Understanding Android data management patterns, part of Building a Note-Taking App for Android.
- There are a few different ways of storing data…persistently on an Android device.…The simplest approach is to use Name-value pairs…and store them as what are known as shared preferences.…The shared preferences architecture…lets you store these values in XML files…that are completely managed by the API.…Using shared preferences,…you don't need to create or pars your own XML,…you just need to make calls through the API.…This is how I stored Notes data…in the original version of plain old Notes.…
It was robust and dependable but it didn't give me…very good access to searching and other features…that are available in a real database.…You can also store data in simple files…and structure the data using XML or JSON formatting.…These approaches are robust but because…of the file based nature you need to…read everything into memory simultaneously…and you need to handle the creating and parsing…of the XML or JSON content yourself.…And then there's SQLite a complete relational…database engine that's included in the Android SDK…
Building a Note-Taking App for iOS 8 and Building a Note-Taking App for Windows Phone 8 and Windows Store use the same assets to develop a similar app. Compare and contrast the steps and discover the similarities and differences between the three platforms.
- Understanding Android UI and data management patterns
- Creating an Android Studio project
- Customizing material design theme colors
- Defining an SQLite database structure
- Managing data with ContentProvider and Loader classes
- Retrieving and displaying data
- Customizing data display with a CursorAdapter
- Creating, updating, and deleting notes
- Preparing the app for deployment