Android Programming and Technical Programming Technical

What is the difference between contentprovider and contentresolver?

Options
1) they are not at all related with each other
2) content provider is used to share private data with other applications, where as content-resolver communicates from client end with content provider.
3) content resolver is used to share private data with other applications, where as content-provider communicates from client end with content resolver.
4)content provider is used to store private data, where as content-resolver communicates from client end with content provider.

Read Solution (Total 1)

Android Other Question

How to start a content provider using an intent?

Options
1) possible. Content provider is also a component of android, so we can use intent to start it.
2) not possible. Using intent you can't trigger a content provider.
3) option 2 is correct because, we use content resolver to communicate with content provider
4)none
How to upgrade database tables?

Options
1) Pass different version number in incremental order, and put all upgrading code in onUpgrade() of helper class.
2) Pass different version number in incremental order, and put all upgrading code in onCreate() of helper class.
3) Pass different version number in any order, and put all upgrading code in onUpgrade() of helper class.
4) Pass different version number is decremental order, and put all upgrading code in onUpgrade() of helper class.