| Reply | « Previous Thread | Next Thread » |
|
Join Date: Aug 2008
Posts: 197
Location: Sri Lanka, Colombo
HasithaRandika
Offline
Regular Contributor
|
|
hi experts,
i'm in a helpless situation... cz i have develop a application using LWUIT. nw the application size is mre than 1Mb from that 1Mb 764Kb is for the LWUIT jar file. so is there a way to reduce the LWUIT jar size. if can't what will be the best option to build attractive GUI??????? (not MIDP) regards, Randika |
| HasithaRandika |
| View Public Profile |
| Find all posts by HasithaRandika |
|
Join Date: Mar 2008
Posts: 2,161
Location: The Capital of I N D I A
raj_J2ME
Offline
Forum Nokia Champion
|
|
|
Quote:
Have you used obfuscater in your application...if no then please set the level of obfuscater as highest. This will reduce the size around 30%. If yes,then you have to take care of the resources you are using..like images..media if any..other like text files..and so on.. You can use a compression tool for the image so that you can minimize the images in size..you can use pngout....it is a good tool,can be found on Google... please tell us more about the application... Thanks R a j - The K e r n e l |
|
Join Date: Aug 2008
Posts: 197
Location: Sri Lanka, Colombo
HasithaRandika
Offline
Regular Contributor
|
|
hi raj,
thanks for your advises i have done the obfuscater still the application size is arnd 918Kb. most of the sis is occupied by the images folder. dats wat i have found out???? regards, Randika |
| HasithaRandika |
| View Public Profile |
| Find all posts by HasithaRandika |
|
well then get started with cutting out all images u dont need :P
how big are those images (in pixels) ? also have u tried out the utility raj2me is pointing out ? also lwuit uses a proprietary system for compressing images, which also places all images into a single bigger one, more info about that is found in their manual... |
|
My suggestion is J2ME Polish.
|
| sasikumar31 |
| View Public Profile |
| Find all posts by sasikumar31 |
|
Join Date: Mar 2008
Posts: 2,161
Location: The Capital of I N D I A
raj_J2ME
Offline
Forum Nokia Champion
|
|
Hi,
As Tiger suggested that start to cut the size of the images and rest of the other resources.... Can you please tell me that what kind of the application is this....leads this much of the jar size...How manu images and with what size you are using... What exactly you are having in the res folder of your application...? What is the code size? Thanks R a j - The K e r n e l |
|
Make sure that there is only necessary files in your JAR file. Check whether there is any Junk/Temp files like Thumbs.db in your JAR. As others mentioned, try to reduce the picture's size.
Regards Gopal MobiQuil.com An initiative by Developers for Developers. http://www.mobiquil.com - Alpha - Launched. |
|
Join Date: Mar 2008
Posts: 2,161
Location: The Capital of I N D I A
raj_J2ME
Offline
Forum Nokia Champion
|
|
Hi,
Yeah,Bala is perfectly correct,check the same in the resources.If it there then delete the same..this file will be around the 70 KB.... However after deleting this..still the jar will be around 840 KB..again this will be a heavy one..please go and check the images and other resources... Thanks R a j - The K e r n e l |
|
Join Date: Aug 2008
Posts: 197
Location: Sri Lanka, Colombo
HasithaRandika
Offline
Regular Contributor
|
|
hi guys,
thanks for your replies, i have reduce the image sizes nw the application size is around 400Kb. but some times i'm getting outOfMemory Errors is dat something to do with my coding or is it due to LWUIT raj i'm developing a loyalty mobile application where customers can view points,vouchers etc thankz, guys |
| HasithaRandika |
| View Public Profile |
| Find all posts by HasithaRandika |
|
These things could be tried :
* Set the objects to null after using it(For eg: Image, Audio objects). * Proper handling of Threads. * Closing of RecordStore after using it. * Minimise the heap memory used. * Use Obfuscator * Minimise the resource file size. Also have a look at Java Performance Tuning Regards Gopal MobiQuil.com An initiative by Developers for Developers. http://www.mobiquil.com - Alpha - Launched. |
|
Join Date: Mar 2008
Posts: 2,161
Location: The Capital of I N D I A
raj_J2ME
Offline
Forum Nokia Champion
|
||
|
Quote:
What I was planing in my mind to write,has already been write by Bala..so go and check the same .All thesee points I have followed and trust me are very much critical to get rid of the Out Of memory.. This is docs That I found and are as - Quote:
Thanks R a j - The K e r n e l |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| Audio Input Stream on N80 | tkaihock | Symbian Media (Graphics & Sounds) | 9 | 2006-06-30 10:15 |
| 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 |