what is contentprovider and contentresolver? which of the below statements are true about them?
i. content provider, and resolver will handle IPC mechanism when query comes from outside apps to access the data.
ii. content provider has the capability to handle multiple threads, when queries are coming from multiple resolvers.
iii. sharedpreferences are supported with content providers.
i & ii
i, ii, & iii
If you want to share the data of one application with the application then use content provider.
Only content resolver can communicate with content provider, from client application.
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