我已经为Android完成了SQLite数据库编程,但除了这一点,我不了解Content-Provider的任何内容:“正如我引用Android Developer页面一样 ,Android SDK解释了”Content-provider“,用于存储和检索数据。
但是之后,
“Content-Provider”和“SQLite数据库”之间的确切区别是什么? 哪个最好存储数据?任何例子或帮助!
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 explained about "Content-provider" as it is used to store and retrieve data."
But then,
What is the exact difference between "Content-Provider" and "SQLite Database"? Which is best to store data, when ?Any example or helps !!
最满意答案
我发现一个主要的区别,如下:
将数据存储在数据库中是保存数据的一个好方法 ,但Android中创建的Android数据库中存在一个警告,只有创建它们的应用程序才可以visible 。 也就是说,一个应用程序在Android上创建的SQLite数据库仅可由该应用程序使用,而不能由其他应用程序使用。
因此,如果您need to share data between applications, you need to use the content provider model as recommended in Android. 本文介绍了内容提供商的基础知识以及如何实现内容提供商。
我发现这篇文章在这个链接
真的很好的信息提供。
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.
“内容提供者”和“SQLite数据库”之间的确切区别(Exact Difference between “Content-Provider” and “SQLite Database”)我已经为Android完成了SQLite数据库编程,但除了这一点,我不了解Content-Provider的任何内容:“正如我引用Android Developer页面一样 ,Android SDK解释了”Content-provider“,用于存储和检索数据。
但是之后,
“Content-Provider”和“SQLite数据库”之间的确切区别是什么? 哪个最好存储数据?任何例子或帮助!
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 explained about "Content-provider" as it is used to store and retrieve data."
But then,
What is the exact difference between "Content-Provider" and "SQLite Database"? Which is best to store data, when ?Any example or helps !!
最满意答案
我发现一个主要的区别,如下:
将数据存储在数据库中是保存数据的一个好方法 ,但Android中创建的Android数据库中存在一个警告,只有创建它们的应用程序才可以visible 。 也就是说,一个应用程序在Android上创建的SQLite数据库仅可由该应用程序使用,而不能由其他应用程序使用。
因此,如果您need to share data between applications, you need to use the content provider model as recommended in Android. 本文介绍了内容提供商的基础知识以及如何实现内容提供商。
我发现这篇文章在这个链接
真的很好的信息提供。
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.
发布评论