Exact Difference between “Content-Provider” and “SQLite Database”

后端 未结 9 1678
名媛妹妹
名媛妹妹 2020-12-04 06:59

i have done SQLite database programming for Android, but i dont know anything about Content-Provider except this: \"As i have referred Android Developer page , Android SDK e

9条回答
  •  情书的邮戳
    2020-12-04 07:47

    I found one major difference, as follows:

    Storing your data in a database is one good way to persist your data, but there's a caveat in Android-databases created in Android are visible only to the application that created them. That is to say, a SQLite database created on Android by one application is usable only by that application, not by other applications.

    So, if you need to share data between applications, you need to use the content provider model as recommended in Android. This article presents the basics of content providers and how you can implement one.

    I found this article at this link

    Really nice information provided.

提交回复
热议问题