Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Testing and Deployment

The maximum size of a BlackBerry 7 or earlier smartphone application

by BlackBerry Development Advisor on ‎09-07-2011 03:28 PM - edited on ‎02-13-2013 05:24 PM by Retired (25,872 Views)



What is the maximum size of a BlackBerry® smartphone application?



BlackBerry smartphone applications are compiled into the .cod file format.  The maximum size of an individual COD file is 128 KB.  This number includes a maximum limit of 64 KB for application data (compiled code) and 64 KB for resource data. (For example, images and  files.) 


If an application is larger than the 128 KB limit (64 KB of application data and 64 KB of resource data), sibling COD files can be created and packaged into a single main COD file. Sibling COD files are a series of COD files that are suffixed with -#, where # is incremented for each sibling COD file. These sibling COD files are then packaged into the main COD file following the basic ZIP structure. The sibling COD files adhere to the 128 KB (64 KB + 64 KB) size limit. To determine if your application contains sibling COD files, you can attempt to open the COD file with WinZip®. If the COD file contains sibling COD files, you can open, view or extract the sibling COD files in the same way as a ZIP file.


The limit for the number of sibling COD files that can exist within a single application is 127.  This means that the maximum theoretical size limit for an application would be 16256 KB, which consists of 8128 KB of application data and 8128 KB of resource data. There is some overhead to this value, which brings the actual maximum size limit closer to 14000 KB.  The actual maximum size for an application will vary slightly based on the application's contents.


It is not possible for either data type (application or resource) to make use of unused space of another data type, meaning resource data cannot use application data space even if the application data is well under the limit.

by New Developer
on ‎09-07-2011 04:01 PM

So what if I want to add a video to my app which is of 20 MB? I can't?

by BlackBerry Development Advisor
on ‎09-07-2011 04:02 PM

You aren't able to bundle a 20 MB video within your application.  However, you could download or copy the video to a micro SD card and reference it from there.

by Developer
on ‎09-07-2011 04:02 PM

My cod file is 6,687KB size and get the 'does not match cod file timestamp of sibling module' error when loading. I try to extract it and see it reaches the limit for the number of sibling COD files, but the size of each is lower than 64KB, not 128KB as the article mentions. So I should assume the maximum limit size for an application would be from 6 to 8Mb, not 14Mb. Please help to specify this.   


I am using JDE 4.3, my image folder before building is about 8Mb.


by BlackBerry Development Advisor
on ‎09-07-2011 04:03 PM

The 128 KB maximum size is made up of 64 KB of application data (compiled code) and 64 KB of resource data (resources built into your application such as images).  It is unlikely that an application would hit both limits simultaneously.  For example an application with very few lines of code and a lot of images would see it's limit to be closer to half of the theoretical limit.

by Developer
on ‎09-07-2011 04:03 PM

Got that, thanks Mark.

by New Developer
on ‎02-25-2013 01:23 AM

Does the application size have its effects on running the app on a low bandwith internet connection(2G GPRS) ???

by BlackBerry Development Advisor
on ‎02-26-2013 04:16 PM

If you are installing over the air, a larger application would take longer to install on a low bandwidth connection.

Users Online
Currently online: 27 members 1,708 guests
Please welcome our newest community members: