j2me - Out of memory exception, does it have anything to do with the maximum heap or jar size?

前端 未结 1 1900
日久生厌
日久生厌 2021-01-15 23:09

I\'m currently developing an app for taking orders. Before I ask my question, let me give you a few details of the basic functionality of my app:

The first thing the

相关标签:
1条回答
  • 2021-01-15 23:22

    i don't know what is the exact reason but these J2ME devices indeed have a memory problem.

    my app is working with contacts, and when i tried to receive the JSON of contacts from the server, if it was too long the conversion indeed caused an out of memory error.

    the solution that i found is paging. divide the data that you receive from the server into parts and read it part by part.

    0 讨论(0)
提交回复
热议问题