Working with Java ME I encountered the following problem:
All classes (including anonymous) in project transforms into separated files after the project building. This leads to an increase of application size as each individual file is not less than 1 kilobyte in the assembled package.
This problem is especially critical in J2ME where the application size is so critical.
My questions are:
Which devices are you targeting? This used to be a problem on legacy devices years ago, but unless your MIDlet is really huge you shouldn't have too much of a problem these days. Have you actually encountered an issue, or are you seeking advice on how to prevent it in future?
You can obfuscate and reduce compiled class sizes using Proguard.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With