Search code examples
javaphpjava-mejarinstallation

.jar file is not install on the samsung mobiles but install on the nokia


I am facing a very strange problem that my J2ME application .jar file is downloaded normally on the Nokia mobiles but on Samsung and Motorola it is not downloaded. But if i install the .jar without downloading on the Samsung or any other handset it worked. If some has any idea then guide. Link of my app is m.hellosunshine.in


Solution

  • Each Device has a specified amount of Heap Memory. A Heap Memory is a kind of RAM for Jar file to run. I Believe that your Samsung device doesn't have enough Heap Memory.

    Most of the devices has 2MB Heap Memory for running Jar Files.

    Nokia E-Series Phones allows unlimited Heap Memory, so you can easily execute your 1.5 MB Jar file in any E-Series mobile.

    There is a utility called ProGuard. It allows your Jar file to compress in such a tiny format that you can run it easily. It will reduce your Jar file to 300-400KB and then you can easily run your application in Samsung Device too.