WHAT'S IN THIS CHAPTER?
> Creating databases and using SQLite
> Using Content Providers to share application data
> Querying Content Providers
> Using Cursors and Content Values to read and write from and to Content Providers
> Database design considerations
> Introduction to the native Content Providers
> Using the Contact Content Provider
In this chapter you'll be introduced to the SQLite library, and you'll look at how to use Content Providers to share and use structured data within and between applications.
SQLite offers a powerful SQL database library that provides a robust persistence layer over which you have total control.
Content Providers offer a generic interface to any data source by decoupling the data storage layer from the application layer.
By default, access to a database is restricted to the application that created it. Content Providers offer a standard interface your applications can use to share data with and consume data from other applications — including many of the native data stores.
Was this article helpful?
Quick start guide to skyrocket your offline and online business success with mobile apps. If you know anything about mobile devices, you’ve probably heard that famous phrase coined by one of the mobile device’s most prolific creators proclaiming that there’s an app for pretty much everything.