This question has been deleted and is no more available to answer.
2
What is the difference between ContentProvider and ContentResolver in android?

Share using link:

Direct share:

Aug 6 at 6:7:26
Yellow
Yellow
391

2 Answers

2
To create a complete content provider, both applications should implement complete set of rules that the Content Provider functionality requires.

So, which means that the app A that provides some content has a specific type of URI to provide the content over this URI with the help of ContentProvider.

Now if the app B wants to get the data it should will first use the ContentResolver to resolve the URI of the app A to get the data that the app A's ContentProvider provides.

So the ContentProvider provides the way to query the content that it is allowed to provide to other apps for example, and the ContentResolver is used to resolve the URI of the app that is using the ContentProvider to provide the content on that resolved URI.

Without ContentProvider you cannot provide content to other apps.
Without ContentResolver you cannot access content from other apps.

Further readings: ContentProviders & ContentResolver.

Hope it helps!!!
Aug 6 at 6:16:54
Jude
Jude
476

thanks it clears!!!Yellow Daddy Aug 6 at 6:22:1

2
Jude provide Excellent answer. ContentProvider is used to provide the content to other apps and ContentResolver is used to resolve the uri of other apps that provide the content.
Aug 6 at 6:21:12
Alex
Alex
244

thanks alex for this short simple definitionYellow Daddy Aug 6 at 6:22:18

Asked
14 days ago
Viewed
32 times