如果我们想与其他Android应用程序共享我们的数据,
(1) 我们可能会创建一个 SQlite 数据库,并使其可供其他应用程序访问,或者
(2) 创建内容提供商。
上述两种方法的基本区别是什么?
ContentProvider 正在向其他应用程序公开数据,非内容提供程序数据库只能由该应用程序访问。
如果我们想与其他Android应用程序共享我们的数据,
(1) 我们可能会创建一个 SQlite 数据库,并使其可供其他应用程序访问,或者
(2) 创建内容提供商。
上述两种方法的基本区别是什么?
ContentProvider 正在向其他应用程序公开数据,非内容提供程序数据库只能由该应用程序访问。
javascript python java c# php android html jquery c++ css ios sql mysql arrays asp.net json python-3.x ruby-on-rails .net sql-server django objective-c excel regex ruby linux ajax iphone xml vba spring asp.net-mvc database wordpress string postgresql wpf windows xcode bash git oracle list vb.net multithreading eclipse algorithm macos powershell visual-studio image forms numpy scala function api selenium