13. Leveraging Content Providers

Applications can access data within other applications on the Android system through content provider interfaces and expose internal application data to other applications by becoming a content provider. Content providers are the way applications can access user information, including contact data, images, audio and video on the device, and much more. In this chapter, we take a look at some of the content providers available on the Android platform and what you can do with them.


Always run content provider code on test devices, not your personal devices. It is very easy to accidently wipe out all of the Contacts database, your browser bookmarks, or other types of data on your devices. Consider this fair ...

Get Introduction to Android™ Application Development: Android Essentials, Fourth Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.