-5

我正在开发安卓应用程序。目前我的apk大小是12mb。我需要在我的项目中保留 40mb 大小的图像。因此,如果我将这些图像保存在我的可绘制文件夹中,那么我的 apk 大小将超过 50 mb。那么如果超过 50 mb,apk 会安装在移动设备中吗?请帮我解决这个问题...

提前致谢

4

2 回答 2

2

If you want to install your apk directly on sdcard then you can go for installLocation(without publishing apk)

or else use Expansion file concept of Android, while publishing your apk you can attach(main|patch) file.

main: Primary resource(application cant run without it)

patch: secondary resource(application can tun without it)

All you need is to collect your content and make a zip, should follow naming format as below

<main|patch>.expansioncode.packagename ".obb" implicitly append why Google.

You have to do Licencing even your app is free. you must have public key of merchant account.

how to download Expansion Content you can find here http://developer.android.com/guide/market/expansion-files.html

While downloading you have to pass parameter content size(in byte) to map the file

XAPKFile(boolean isMain, int fileVersion, long fileSize)

http://developer.android.com/guide/market/expansion-files.html#Download

于 2012-05-24T07:08:04.010 回答
0

截至最近(2015 年 9 月),如果您的目标是 Android 2.3 及更高版本,则可以上传最大 100 MB 的 APK - 您可以在此帮助页面上阅读更多相关信息。此限制以前为 50 MB。还有一篇 Android 开发者博客文章解释了这里的变化。

或者,如果您的应用超过 100 MB APK 限制,您可以使用扩展文件。这些是在您的应用安装后下载的附加文件,最大为 4 GB(具体来说,您可以拥有两个最大为 2 GB 的扩展文件)。您可以在 Android 开发者网站上的此页面上了解有关扩展文件的更多信息。

于 2015-12-25T17:22:26.053 回答