O'Reilly logo

Xamarin Mobile Application Development for Android - Second Edition by Nilanchala Panigrahy

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required