有超过100 MB $ P $ Android应用ploaded SQLite数据库 [英] Android application with more than 100 MB preloaded sqlite database

查看:157
本文介绍了有超过100 MB $ P $ Android应用ploaded SQLite数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在开发的一项调查显示Android应用程序。在调查统计员核对一个preloaded SQLite数据库的人。在preloaded数据库的大小LIKEY将超过100 MB。鉴于50 MB为Android APK,哪些应该是与应用程序一起部署数据库的方法大小限制。该应用程序将使用USB加载到该设备,然后交给统计员。

we are developing an android application for a survey. During the survey the enumerators check people against a preloaded sqlite database. Size of the preloaded database is likey to be more than 100 MB. Given the size limit of 50 MB for android apk, what should be the approach to deploy the database along with the application. The application would be loaded into the device using USB and then handed over to the enumerators.

推荐答案

是的,我认为这个问题就解决了​​。我复制数据库到SD卡和应用其复制到\\ DATA \\ DATA \\ mypackagename \\数据库目录的开始。下一次启动它检查数据库中是否存在和什么都不做。这是工作的罚款。感谢您的建议。

Yes I think the problem is solved. I am copying the db onto the SDCard and on start of application copying it to the \data\data\mypackagename\databases directory. On the next start it checks whether DB exists and does nothing. It is working fine. thanks for the suggestions.

这篇关于有超过100 MB $ P $ Android应用ploaded SQLite数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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