Reputation: 41
I'm working with LWUIT 1.5 to make my own theme to apply to my J2ME application. I've found a problem when I've added datas to my theme from Data tab in LWUIT Resource Editor. Those data files are .csv
files.
When I run my application, It show me java.lang.OutOfMemoryError
in my Eclipse console and it doesn't start.
I've found that several of this data files are causing this problem because their sizes are more than 100.000 bytes. Does it means that I need to use data more small? Does it means that exist a maximum size to that resources?
Any ideas?
Thank you
Upvotes: 1
Views: 549
Reputation: 14453
Basically OutOfMemoryError
occurs on S40 mobiles. Because they have only heap memory 1 to 2 MB size. They can't extended their memory on run time. So when its exist, OutOfMemoryError
exception will be throw. So better idea, If you handle huge size of files, just store it in server and read from server. Use web service for this. Look on these articles, then you can get better idea about how to handle,
Upvotes: 1