Interview Questions

What is a content provider?

Android Interview Questions and Answers


(Continued from previous question...)

What is a content provider?

A content provider makes a specific set of the application?s data available to other applications.The content provider extends the ContentProvider base class to implement a standard set of methods that enable other applications to retrieve and store data of the type it controls. However, applications do not call these methods directly. Rather they use a ContentResolver object and call its methods instead.

Content Provider is a DataStore.We can query it and add and update the data.It is mainly used for share data across the packages.

(Continued on next question...)

Other Interview Questions