大型应用程序的 Android 市场更新 (50mb+)
将来,我会将 iPhone 应用程序移植到 Android/NDK,该应用程序可处理大量资源文件(超过 50 兆)。我的应用程序是否必须下载这些文件并将其存储在 /sdcard 上,并通过我自己的网络托管以专有方式检查/下载更新,或者谷歌是否会为此提供解决方案?谷歌实际上可以托管额外的文件吗?
In the future, I will be porting an iPhone app to Android/NDK which works with large amounts of resource files (over 50 megs). Will my app have to download and store these files on /sdcard, and check for/download updates in a proprietary way over my own web hosting, or will google have a solution for this? Can google actually host extra files?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
大多数应用程序会自行将资源下载到 SD 卡,因为应用程序通常驻留在某些手机上的数据目录中,该目录不是很大(例如,新的 HTC Desire 上大约有 140MB 可用空间)。
一个很好的例子是 MapDroyd,它通过 http 独立于市场下载和更新地图数据。
从 Android 2.2 (Froyo) 开始,您可以将应用程序安装到 sd 卡,但不能安装到普通 sd 卡,而是安装到 sd 卡的特殊加密部分。
如果您真的不想使用 Android Market 来处理所有事情,您可以将您的应用程序拆分为两个或多个应用程序 - 一个用于主应用程序,另一个用于资源。使用相同开发者密钥签名的应用程序可以相互访问。
如果主应用程序启动,请检查资源应用程序,如果不存在,则打开 Android 市场,显示资源应用程序以供下载。
Most apps download resources on their own to the sd-card because apps usually reside in the data directory which is on some phones not very large (e.g. ~140MB free on a fresh HTC Desire).
A good example is MapDroyd which downloads and updates the map data itself via http independently of the market.
Since Android 2.2 (Froyo) you can install an app to sd-card but not onto the plain sd-card but into a special encrypted part of the sd-card.
If you really wont to use the Android Market for everything you could split your app into two or more apps - one for the main app and one for the resources. Apps that are signed with the same developer key can access each other.
If the main app starts check for the resources app and if not present open the Android market displaying the resource app for download.
另外,Google Play 商店(以前称为 Android Market)现在也允许托管高达 2GB 的大型 APK 扩展文件(“资源”文件)。
请在此处查看有关此内容的更多信息:
Google Play 上的 APK 扩展文件
Alternatively the Google Play Store (formerly known as Android Market), now also allows to host large APK Expansion Files ("resource" files) up to 2GB.
See more info about this here:
APK Extension files on Google Play