문제

I had question, is it possible to store RMS to Memory card? Since we use large amount data to store in RMS. Is there any alternative way?

I want to know how RMS memory is calculated?

도움이 되었습니까?

해결책

I want to know how RMS memory is calculated

API for above is RecordStore#getSizeAvailable(), see method javadocs:

...Returns the amount of additional room (in bytes) available for this record store to grow. Note that this is not necessarily the amount of extra MIDlet-level data which can be stored, as implementations may store additional data structures with each record to support integration with native applications, synchronization, etc.

다른 팁

To get Total memory size

Runtime.getRuntime().totalMemory()

To get free memory size

Runtime.getRuntime().freeMemory()

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top