Your mobile maximum Java application size - Printable Version +- dedomil.net - Mobile Games Forum (http://dedomil.net/forum) +-- Forum: Off Topic Section (/forumdisplay.php?fid=3) +--- Forum: Off Topic discussion (/forumdisplay.php?fid=4) +--- Thread: Your mobile maximum Java application size (/showthread.php?tid=5494) Pages: 1 2 |
Your mobile maximum Java application size - JoseskVolpe - 02-04-2021 02:26 AM I've 2 Java phones, a GT-M2510 and a LG X350, my GT-M2510 don't install applications over 300Kb, over that it refuses to install, the X350 only install under 8Mb. So i'm trying to limit my UndertaleME project's size under 250Kb, but well, it's getting even harder while its code is increased and i think i'll not be able to make lighter than that lol. Current size is 205Kb So, ¿what is the app size's limit of your phones? I need to know that to know what size is the most accessible Specify your model RE: Your mobile maximum Java application size - Kankon - 02-04-2021 05:28 AM Mine Is Under 4 Mb And Ram Is 8 Mb RE: Your mobile maximum Java application size - John Marcus - 02-04-2021 09:33 AM Easily can install 1.5mb size files RE: Your mobile maximum Java application size - Dedomil - 02-04-2021 06:03 PM I think Series 30 devices had lower midlet size. I think some about 65KB RE: Your mobile maximum Java application size - JoseskVolpe - 02-04-2021 11:13 PM (02-04-2021 05:34 PM)The_Quote Wrote: You should make it under 200kb!!. because the minimum size for all java phones is 200kb!!!. Very hard... Under 250Kb is already becoming hard... I'll try to make a ripped no-sound version, or maybe music-only, and see if i can make it lighter, sounds are what most occupy space here Dedomil Wrote:I think Series 30 devices had lower midlet size. I think some about 65KB ¿65Kb? Holy ***** that is so low. Sorry, that'll be impossible Also, i've seen them all have so low resolution, i plan for it to be playable at 176x208 minimum, 320x240 (landscape) recommended And looks like they are CLDC 1.0, or MIDP-1.0... It'll require CLDC 1.1 and MIDP 2.0 as i need floating point (yeah i know there's a library for that, but that would be very inneficient for CLDC 1.1 phones and Army Knive uses CLDC 1.1), MIDlet graphics packages and Image manipulation, and also some extra features i plan to add RE: Your mobile maximum Java application size - nkzn64 - 02-05-2021 03:56 PM (02-04-2021 02:26 AM)JoseskVolpe Wrote: So i'm trying to limit my UndertaleME project's size under 250Kb, but well, it's getting even harder while its code is increased and i think i'll not be able to make lighter than that lol. Current size is 205Kb If you are not doing so already, obfuscating the Java classes can yield high size reductions on them. It can strip out lots of debugging information J2ME phones don't make any use of. ProGuard is the most popular tool for doing so (https://github.com/Guardsquare/proguard) These are the options that usually work for me: Code: proguard -libraryjars S40-5th-lib-unified.jar -target 1.4 -keep 'class * extends javax.microedition.midlet.MIDlet' -optimizationpasses 5 -overloadaggressively -repackageclasses '' -allowaccessmodification -microedition -injars input.jar -outjar output.jar If you use PNG assets, there's several tools that can try harder at compressing them to further reduce their size, without any quality loss. They can usually save a few kilobytes off big PNGs https://github.com/fhanau/Efficient-Compression-Tool https://css-ig.net/pingo (Windows only) https://trimage.org/ (Linux only) If you are using MIDI files, old Nokia PC Suite versions had a tool to adapt MIDI files to the phone's capabilities (IE, reduce channels, length, etc) It also haves an "Optimize file size" option that might be of your interest Nokia PC Suite is very old, you will need an old Windows machine (or virtual one) to run it. Here's the installation disc https://archive.org/details/nokia8800driversdisc I've tried in Windows XP, and you can install it sucessfully without a phone. When asked for the connection type, just click cancel and it will take you to the main PC Suite screen. Then use the "Make Ringtone" option Finally, you can try running AdvZip on the final JAR file (https://www.advancemame.it/comp-readme.html). It should shave a few kilobytes more Hope this is helpful for your project! RE: Your mobile maximum Java application size - Abidemhie - 02-06-2021 01:04 AM Try creating it. You can't satisfy all here cause they are not using same phone but try creating the one of about 200+ but maximum of 15mb RE: Your mobile maximum Java application size - JoseskVolpe - 02-06-2021 01:07 AM (02-05-2021 03:56 PM)nkzn64 Wrote: If you are not doing so already, obfuscating the Java classes can yield high size reductions on them. It can strip out lots of debugging information J2ME phones don't make any use of. ProGuard is the most popular tool for doing so (https://github.com/Guardsquare/proguard) I'm already using Proguard, without it it goes up to 285Kb lol Proguard really helps alot To compress Image files, i'm using Gimp, limitting it's color palletes and exporting them as 8-Bit AARRGGB, but i'll try these tool too, thank you (02-05-2021 03:56 PM)nkzn64 Wrote: If you are using MIDI files, old Nokia PC Suite versions had a tool to adapt MIDI files to the phone's capabilities (IE, reduce channels, length, etc) It also haves an "Optimize file size" option that might be of your interest I did not knew MIDI could be compressed, thanks <3 ¿Is it 100% compatible? I'm a bit afraid because it's on Nokia PC Suite and i think it'll make only Nokia compatible... ¿Will this compression work on all models? |