安卓pre填充数据库 [英] Android pre-filled DB

查看:147
本文介绍了安卓pre填充数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能提供pre填充的SQLite数据库到我的应用程序? 也就是我想用分贝(普通的SQLite数据库),这将有表,填补了手,我希望把它列入到我的.apk文件。

Is it possible to supply pre-filled SQLite DB to my app? ie I want to use db(as ordinary SQLite db) which will have tables filled by hand and I want to include it into my .apk file.

推荐答案

是的,它包含在您的资产文件夹并将其复制到/数据库文件夹,当你的应用程序第一次启动。

Yes, include it in your assets folder and copy it into the /databases folder when your application first launches.

这篇关于安卓pre填充数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆