Content providers are one of the primary building blocks of Android
applications.
• In Android, using a content provider is the recommended way to share
data across packages.
• Think of a content provider as a data store. How it stores its data is not
relevant to the application using it; what is important is how packages can
access the data stored in it using a consistent programming interface.
• A content provider behaves very much like a database
— you can query it, edit its content, as well as add or delete content.
• However, unlike a database, a content provider can use different ways to
store its data. The data can be stored in a database, in files, or even over a
network.