如何管理Android应用大数据? [英] How to manage big data on android app?
问题描述
我有我在我的网站上使用一个大的数据库,我想将它用于Android应用程序没有互联网连接。
I have a big database that I use on my website and I would like to use it for an android application without an Internet connection.
我的数据库可以出口到.db文件。我应该怎么做才能使用此文件为我的Android应用。
My database can export to .db file. How should I do to use this file for my android app.
问候
推荐答案
请您的数据库副本资产的文件夹,
复制在该数据库中的 /data/data/your.package.name/databases 当你加载应用程序的第一次。
Keep copy of your database in asset folder, copy that database in /data/data/your.package.name/databases while you loading your application first time.
如果您的数据库大于1MB除以数据库的小零件。
if your database is larger than 1MB Divide the database in small parts.
例如:如果大小= 8 MB使8份1MB的不是加入了部分成问题,而复制
ex: if size = 8 MB make 8 parts of 1MB than join that parts problematically while copying.
这篇关于如何管理Android应用大数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!