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.