Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我们将移动设备的唯一标识符存储在 SQLite 数据库中,用于许可目的。问题是如果用户删除应用程序然后重新安装它,SQLite 数据库将与我们存储的变量一起消失。
如何防止在应用程序安装时删除数据库,以便在重新安装应用程序时我们可以重用数据库
谢谢
您可以通过将信息发送到服务器端来解决此问题,您不能将任何数据存储在应用程序沙箱之外。
你可以:
在程序中,您可以创建 SQLite 数据库的副本。只需将数据库拖放到程序资源中即可。