What is the purpose of the ContentProvider class?
To play rich media content files.
To share data between Android applications.
To access the global information about an application environment.
To maintain global application state.
If you want to share the data of one application with the application then use content provider.
Note: We can start an Activity, a service, and a broadcast receiver by using intents. But you can't start or communicate with a content provider by using intents. If you want to communicate with content provider then you have to use content resolver.
1.content provider, and resolver will handle IPC(Inter process communication) mechanism when sharing data between 2 applications.
2.content provider has the capability to handle multiple threads, when queries are coming from multiple resolvers.
Back To Top