Chapter 8. Creating Data Storage Mechanisms
We now turn our attention to data storage requirements. We need a way to store a list of Point of Interest (POI) data fetched from the server and make the list accessible when a device runs offline. This chapter shows how to use the built-in SQLite database engine to store and retrieve the POI data in a cross-platform way. The following topics will be covered in this chapter:
- Approaches to data storage solutions
- Different app storage options in Android
- Using preferences to store key-value pairs
- SQLite database storage in Xamarin.Android
- Using the SQLite.NET ORM component
- Performing database CRUD operations
- Unit testing the Android app using NUnitLite
- Implementing caching to
POIApp
Data storage solutions mainly ...
Get Xamarin Mobile Application Development for Android - Second Edition 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.