| Reply | « Previous Thread | Next Thread » |
|
I'm curious as to what methods for reducing jar size exist.
What I have tried so far: - used pngout - moved static classes into one single class I saw on an older thread on this forum that someone suggested Image Optimizer from xat.com. I'll try that. I still need some more methods. Thanks. |
|
- obfuscate your code with proguard, with the -overloadaggressively option
- you can combine your png resources into one big resource (the drawback of this method is the heap size) - you can combine any resource into one resource, but you must be able to read the right resource at the right position - if your application uses http, you may download resources instead... - if you initialized static (or not) arrays in your classes, you can use resources to initialize arrays instead. You may gain some bytes... - move your variable declarations, seems like you can gain some bytes, if the ones most used are placed first (but I've never tried it...) - avoid interfaces or extension... - avoid object conception, put everything in one class ;) - you can try to unjar your jar application, and use "7-zip" (7-zip.org) to re-compress it, and change the midlet size in the jad. |
|
|
| simonhayles |
| View Public Profile |
| Find all posts by simonhayles |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| OTA max jar size | lewsterin | Mobile Java General | 4 | 2006-01-27 10:47 |
| The correct meaning of MAX JAR size | bigrio | Mobile Java General | 1 | 2004-11-16 11:30 |
| The correct meaning of MAX JAR size | bigrio | Mobile Java General | 0 | 2004-11-13 12:03 |
| A Different Jar Size Limit Problem | cicdem | Mobile Java General | 0 | 2004-06-17 16:01 |
| reducing jar file size | doomer999 | Mobile Java General | 1 | 2003-05-14 20:25 |