Chapter 5. Dude, Where's my Data?

In this chapter, we will cover the following recipes:

  • Creating a shared SQLite data access
  • Performing CRUD operations in SQLite
  • Consuming REST web services
  • Leveraging native REST libraries and making efficient network calls

Introduction

There are three types of applications: online, offline, and both, where in some way the device synchronizes its local data with some remote data in a server.

In the disconnected mobile world, we have three local storage options to store data in your own sandbox space, the areas where you have the required permission to read and write data:

  • Preferences (simple key\value pairs user settings)
  • Direct access to the filesystem (JSON, XML, text, binary)
  • Local database (SQLite, NoSQL)

You can use ...

Get Xamarin: Cross-Platform Mobile Application 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.