Monday 12 January 2015

What is the purpose of the ContentProvider class ?

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.

No comments:

Post a Comment