recordstore

J2ME RMS - Best practice for opening/closing record store?

孤人 提交于 2020-01-04 21:36:08
问题 My midlet uses two record stores. Currently, I create/open both record stores when the app starts and I leave them both open for the entire lifetime of the app. If I open/close the record store after each operation (e.g., reading or writing) the delays are really bad in the emulator. Similarly, if I close the recordstores when the app exits, there is another very long delay. So is it OK for me to never close the record stores in my code (thereby, presuming the device will do this itself when

Available RecordStore size

谁说胖子不能爱 提交于 2019-12-24 06:36:10
问题 How can I get the total ROM memory size available for Recordstore in a midlet ? 回答1: You can try creating an empty record store and using the methods RecordStore.getSizeAvailable() and RecordStore.getSize() to determine the total maximum size of a single record store. From experience most devices don't put a restriction on the number of record stores your application can create. 来源: https://stackoverflow.com/questions/3792074/available-recordstore-size