使用Android应用程序部署大型数据库
我需要为需要访问大型(~200MB)数据库的 Android 设备编写一个应用程序。 最好的方法是什么?我可以将数据库放在资产文件夹中吗?我读过适用于整个应用程序大小和其中的单个资源的各种限制,特别是在某些设备上......这些限制到底是什么?
除了从外部服务器安装后下载之外,还有什么方法可以做到这一点?
I am in need to write an application for Android devices that needs to access a large (~200MB) database.
What would be the best way to do this? Can I just stick the database in the assets folder? I have read of various limitations that apply to the entire application size and to individual resources within, especially on some devices... What are exactly these limits?
Is there any way to do this apart from a post-installation download from an external server?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
G1 拥有 256MB 的应用程序内部存储空间。即使在 Nexus One 上也只有 512MB,所以我认为任何人都不太可能希望单个应用程序占用如此高比例的存储空间,因此创建 200MB 以上的 .apk 文件是不切实际的。
您的选择可能是:
我认为最后一个是最不可取的,因为 200MB 的下载将需要很长时间,并且可能会占用某人每月 3G 数据流量的很大一部分。如果您打算这样做,可能值得 检查手机的状态,以便您仅在有 wi-fi 连接时下载。
The G1 has 256MB of internal storage for applications. Even on the Nexus One there's only 512MB so I think it's unlikely that anyone would want a single application taking up such a high proportion of this storage, so creating a 200MB+ .apk file isn't going to be practical.
Your options are probably:
I think the last of these is least preferable, as a 200MB download is going to take a long time, and might use a significant chunk of someone's 3G monthly data allowance. If you are going to do this it may be worth checking the status of the phone so you only download when there's a wi-fi connection.