If have login problems remove cookies and clear browser cache.



Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Your mobile maximum Java application size
02-04-2021, 02:26 AM (This post was last modified: 02-04-2021 02:29 AM by JoseskVolpe.)
Post: #1
Question Your mobile maximum Java application size
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

[size=xx-small]Signature[/size]
[URL=https://www.exophase.com/user/JoseskVolpe/][IMG]https://card.exophase.com/2/0/45687.png?1612237163[/IMG][/URL]

[align=justify][size=x-small][b]OwO ¿¿¿What is this??? *wags tail*
Take my beret plz 7w7 ~[/b][/size][/align]
Find all posts by this user
Quote this message in a reply
02-04-2021, 05:28 AM
Post: #2
RE: Your mobile maximum Java application size
Mine Is Under 4 Mb And Ram Is 8 Mb
Visit this user's website Find all posts by this user
Quote this message in a reply
02-04-2021, 09:33 AM
Post: #3
RE: Your mobile maximum Java application size
Easily can install 1.5mb size files
Find all posts by this user
Quote this message in a reply
02-04-2021, 06:03 PM
Post: #4
RE: Your mobile maximum Java application size
I think Series 30 devices had lower midlet size. I think some about 65KB
Visit this user's website Find all posts by this user
Quote this message in a reply
02-04-2021, 11:13 PM (This post was last modified: 02-04-2021 11:22 PM by JoseskVolpe.)
Post: #5
RE: Your mobile maximum Java application size
(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

[size=xx-small]Signature[/size]
[URL=https://www.exophase.com/user/JoseskVolpe/][IMG]https://card.exophase.com/2/0/45687.png?1612237163[/IMG][/URL]

[align=justify][size=x-small][b]OwO ¿¿¿What is this??? *wags tail*
Take my beret plz 7w7 ~[/b][/size][/align]
Find all posts by this user
Quote this message in a reply
02-05-2021, 03:56 PM
Post: #6
RE: Your mobile maximum Java application size
(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
(I've attached the S40-5th-lib-unified.jar. It is from the Nokia SDKs. It contains the library classes for the J2ME APIs)

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!


Attached File(s)
.jar  S40-5th-lib-unified.jar (Size: 1.01 MB / Downloads: 11)
Find all posts by this user
Quote this message in a reply
02-06-2021, 01:04 AM
Post: #7
RE: Your mobile maximum Java application size
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

how i want to net my enemies here in this forum.....***** the haters
Visit this user's website Find all posts by this user
Quote this message in a reply
02-06-2021, 01:07 AM
Post: #8
RE: Your mobile maximum Java application size
(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)
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
(I've attached the S40-5th-lib-unified.jar. It is from the Nokia SDKs. It contains the library classes for the J2ME APIs)

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)

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
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!

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?

[size=xx-small]Signature[/size]
[URL=https://www.exophase.com/user/JoseskVolpe/][IMG]https://card.exophase.com/2/0/45687.png?1612237163[/IMG][/URL]

[align=justify][size=x-small][b]OwO ¿¿¿What is this??? *wags tail*
Take my beret plz 7w7 ~[/b][/size][/align]
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 3 Guest(s)