简体   繁体   English

具有超过100 MB的预加载sqlite数据库的Android应用程序

[英]Android application with more than 100 MB preloaded sqlite database

we are developing an android application for a survey. 我们正在开发一个用于调查的android应用程序。 During the survey the enumerators check people against a preloaded sqlite database. 在调查期间,调查员会根据预先加载的sqlite数据库检查人员。 Size of the preloaded database is likey to be more than 100 MB. 预加载的数据库大小可能会超过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. 给定android apk的大小限制为50 MB,将数据库与应用程序一起部署的方法应该是什么。 The application would be loaded into the device using USB and then handed over to the enumerators. 该应用程序将使用USB加载到设备中,然后移交给枚举器。

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. 我将数据库复制到SDCard上,并在应用程序启动时将其复制到\\ data \\ data \\ mypackagename \\ databases目录中。 On the next start it checks whether DB exists and does nothing. 在下一次启动时,它将检查数据库是否存在并且不执行任何操作。 It is working fine. 一切正常。 thanks for the suggestions. 感谢您的建议。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM