我需要从另一个应用程序更新和插入 Sqlite 中的行。我正在开发一个 Android 应用程序,我必须更新另一个应用程序的数据库,我该怎么做,是否可以从我的应用程序访问和编辑另一个应用程序的数据库。
最佳答案
您应该看看 Content Provider。来自安卓official docs
Content providers manage access to a structured set of data. They encapsulate the data, and provide mechanisms for defining data security. Content providers are the standard interface that connects data in one process with code running in another process.
Android Docs解释如何使用它。
关于java - 从android中的另一个应用程序更新应用程序的数据库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34783402/