Best practice for storing large amounts of data with J2ME

后端 未结 8 488
没有蜡笔的小新
没有蜡笔的小新 2020-12-03 08:50

I am developing a J2ME application that has a large amount of data to store on the device (in the region of 1MB but variable). I can\'t rely on the file system so I\'m stuck

8条回答
  •  我在风中等你
    2020-12-03 09:23

    Thanks everyone for useful commments. In the end the simplest solution was to limit the amount of data being stored, implementing code that adjusts the data according to how large the store is, and fetching data from the server on demand if its not stored locally. Thats interesting that the limit is increased in OS 4.6, with any luck my code will simply adjust on its own and store more data :)

    Developing a J2ME application for Blackberry without using the .cod compiler limits the use of JSR 75 some what since we can't sign the archive. As pointed out by Carlos this is a problem on any platform and I've had similar issues using the PIM part of it. The RMS seems to be incredibly slow on the Blackberry platform so I'm not sure how useful a inode/b-tree file system on top would be, unless data was cached in memory and written to RMS in a low priority background thread.

提交回复
热议问题