"Data really powers everything that we do." | ||
--– Jeff Weiner, LinkedIn |
In the last chapter, we started programming our very own contact manager. We came across various building blocks of a database-centric application; we covered database handlers and building queries in order to get meaningful data from our database. We also explored how to make a connection between our UI and database and present it in a consumable manner for the end user.
In this chapter, we will learn how to access other application's data via means of content providers. We will also learn how to build our very own content provider in order to share our data with other applications. We will look into Android's providers such as contactprovider. To wrap things up, we will construct a test application to use our newly constructed content provider.
In this chapter, we will cover the following topics:
What is a content provider?
Creating a content provider
Implementing the core methods
Using a content...