android - Exact Difference between "Content-Provider" and "SQLite Database" -
I have done SQLite database programming for Android, but I also do not know anything about the content provider: "As I mentioned, Android SDK explained about" content-provider "because it uses data to store and "
But then,
- What is the exact difference between" content-provider "and" SQLite database "?
- Which data is best to store when?
Any examples or help !!
I have found a major difference as follows:
Storing in the database is a great way to continue your data, , but there is a warning in Android - the database created in Android visible
only those applications To which they were created. This means that, on an Android, a SQLite database has been created, which is built through an app, it is usable by applications, but not by other applications.
Thus, if you need to share data between applications , you need to use the Recommended Content Provider model in Android.
This article presents the basics of content providers and how you can implement it.
I found this article on this
Really good information has been provided.