BT

Android Application Size Increased to 4.05 GB

| by Jonathan Allen Follow 615 Followers on Mar 14, 2012. Estimated reading time: 1 minute |

The maximum size of Android applications has been increased significantly. While the core APK is still limited to 50 MB, applications are now allowed to have two extension files of 2 GB each hosted by the Android marketplace. These extension files can use any format, though Google recommends that ZIP files be used.

Extension files are automatically downloaded when the application is installed if the user has WiFi access, otherwise the user has to accept the possible carrier charges. The downloads happen immediately for newer devices, while older phones wait until the application is run for the first time before starting the download.

The standard design pattern for extension files is to use one file for all of the application’s initial download. The second file should be held in reserve for patching individual files, allowing it to be significantly smaller. This is demonstrated in the downloader service example:

Because many developers may not be used to working with one or two large files for all of their secondary content, the example code also includes support for using a Zip file as the secondary file. The Zip example implements a reasonable patching strategy that allows for the main expansion file to “patch” the APK and the patch file to “patch” both the APK and the main expansion file by searching for asset files in all three places, in the order patch->main->APK.

Rate this Article

Adoption Stage
Style

Hello stranger!

You need to Register an InfoQ account or or login to post comments. But there's so much more behind being registered.

Get the most out of the InfoQ experience.

Tell us what you think

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Android App SIze by Naresh Chintalcheru

Not sure who will use such a large Android App :)

Re: Android App SIze by Jonathan Allen

I'm thinking it will be used primarily for games and research tools. For example, the Medscape app already downloads their medical encyclopedia to your phone.

Imagine you are a bird watcher on a nature hike. Cell phone reception is probably going to be spotty or missing entirely, so having all of the descriptions and images pre-loaded on your phone would be essential.

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

2 Discuss

Login to InfoQ to interact with what matters most to you.


Recover your password...

Follow

Follow your favorite topics and editors

Quick overview of most important highlights in the industry and on the site.

Like

More signal, less noise

Build your own feed by choosing topics you want to read about and editors you want to hear from.

Notifications

Stay up-to-date

Set up your notifications and don't miss out on content that matters to you

BT