what are content providers in android? How to implement this in a program?

0 votes
430 views
Prateek sharma asked 06-Apr-2018 in Android by Prateek sharma


1 Answer

0 votes
Arti Mishra answered 21-May-2018 by Arti Mishra

Content Provider in android :

The content provider is used to supply data from one application to another application if any request occurs. These requests are handled by using ContentResolver class.  Content Provider can be used to store data in different location like database, files or even though over a network. Sometimes content provider becomes very helpful for sending data across the applications. The content provider is the part of android application used to manage the central repository of data and it provides our own UI for working with data.

what are content providers in android? How to implement this in a program?

The content provider is used to centralize the content one place and have to access in a different application as per requirement. It behaves like a database where you can edit, delete and update the contents using insert (), delete () or update () methods and stores the data using SQLite database.


Content Provider Implementation :

what are content providers in android? How to implement this in a program?