如何在应用程序删除后仍然存在的应用程序之间共享数据库?

How Can I Share a Database Between Apps that Persists After App Removal?

是否可以在不同的 android 应用程序之间建立本地共享 SQLite 数据库,如果用户删除任何应用程序(包括第一个安装的应用程序)它不会删除共享数据库?

我知道内容提供程序通常是在应用程序之间共享数据的方式,但我的理解是,当卸载原始安装的程序时,内容提供程序和数据库将被卸载。这是正确的吗?

我意识到在线存储数据解决了共享数据库的问题,但它也带来了应用缓慢、连接问题、如果应用变大则服务器费用高等问题。

这里有好的解决办法吗?

Is it possible to have a local shared SQLite database between different android apps where if the user removes any of the apps (including the first installed app) it won't delete the shared database?

您必须将其放在 external storage 上。从隐私和安全的角度来看,这太可怕了。另外,用户可以删除它。

I know that Content Providers are usually the way to go with sharing data between apps but my understanding is that a content provider and database will get uninstalled when the original installed program is uninstalled. Is this correct?

是的。

Is there a good solution here?

拥有一个应用程序,而不是多个应用程序。