我已经创建了一个 android 应用程序,它的 Assets 文件夹中有一个已经存在的 sqlite 3 数据库。我将应用程序设计为在应用程序首次启动时将数据库复制到移动设备上。我的问题是如何发布数据库和应用程序,以便用户可以轻松安装应用程序?
谢谢
最佳答案
The method I'm going to show you takes your own SQLite database file from the "assets" folder and copies into the system database path of your application so the SQLiteDatabase API can open and access it normally.
看看这里:Using your own sqlite database in your Android applications
关于android - 如何将我的 android 应用程序与数据库打包,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4436550/