When you want to access data in a content provider, you use the
ContentResolverobject in your application's
Contextto communicate with the provider as a client. The
ContentResolverobject communicates with the provider object, an instance of a class that implements
ContentProvider. The provider object receives data requests from clients, performs the requested action, and returns the results.
You don't need to develop your own provider if you don't intend to share your data with other applications. However, you do need your own provider to provide custom search suggestions in your own application. You also need your own provider if you want to copy and paste complex data or files from your application to other applications.
Android itself includes content providers that manage data such as audio, video, images, and personal contact information. You can see some of them listed in the reference documentation for the
package. With some restrictions, these providers are accessible to any Android application.