memoryjava-melwuitheap-memory

outOfMemoryError on J2ME application


recently I'm developing a J2ME application using LWUIT library, my application size is 679 KB after obfusticating. in some mobile devices and in non-specific events I get OutOfMemoryError error.

I want to know what this error is for and does it related to Memory of device or its a bug of my application, and what is the solution?

thanks a lot in advance


Solution

  • Unfortunately there is not a way to tell how to fix your application without studying it. This wiki entry is a good start to understand what to look for when optimizing memory for JavaME apps.