Android Developer Question: Download Android Developer PDF

Please explain what is an Intent? Can it be used to provide data to a ContentProvider? Why or why not?

Tweet Share WhatsApp

Answer:

The Intent object is a common mechanism for starting new activity and transferring data from one activity to another. However, you cannot start a ContentProvider using an Intent.

When you want to access data in a ContentProvider, you must instead use the ContentResolver object in your application’s Context to communicate with the provider as a client. The ContentResolver object communicates with the provider object, an instance of a class that implements ContentProvider. The provider object receives data requests from clients, performs the requested action, and returns the results.

Download Android Developer PDF Read All 56 Android Developer Questions
Previous QuestionNext Question
Tell us what is the difference between Mobile Application Testing and Mobile Testing?Please explain how to prevent the data from reloading and resetting when the screen is rotated?