Chapter 18
ContentProviders
In This Chapter
• Intro to ContentProviders
• Sharing data between apps
• Querying other apps
• Creating your own provider
Imagine there was no central point of access to a contacts database. It would then be up to each individual app to create and maintain its own set of contacts. Users could quickly find themselves lost, forced to juggle through multiple apps just to find a phone number.
Android solves this problem with an elegant solution: ContentProviders. Providers enable apps to publish information they collect to other apps. This chapter explores how to use Providers to pull useful information from other apps into your own, as well as how to make your valuable information available to others.

Introduction to ...

Get The Complete Idiot's Guide to Android App 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.