08-08-2012 06:00 PM
HOw do I know what is the actual size of the application I have developed for my BB. Is it the size of my project folder created by Blackberry Java Plug in? If that folder is 7 MB is that too much? Any tips to reduce the application size will be greately appreciated!
Thanks in advance!!!
08-08-2012 06:57 PM
There is a KB article on that, but in general 7MB for data, 7MB for code - 14 MB total.
- resize & compress images with jpg,
- compress music with mp3 (do you need stereo and high quality sound? chirping speaker will not show difference),
- compress large textual resources with gzip and use ZipInputStream (by example css, js, large html pages)
- consider changing input file formats (xml have very large overhead over content),
- download and store data in filesystem instead of including it in application,
- if your application have resources for multiple platforms - chop it into smaller pieces (by example by screen ratio, touch-non touch, os version etc)
Hope this helps.
08-08-2012 07:36 PM
Tips from above have to be applied manually and with care on resources of application. But in general cod file is smaller that sum of all .java files and resources (compilation limit file size, and there is a bunch of optimalizations made on result classes). Resources can take very large amount of space and are easy to optimize, devices have limited screen sizes and limited capabilities - images and sounds can be optimized to be looking good on devices (by ex. there is no need to go FullHD).