Question

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?

Was it helpful?

Solution

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.

OTHER TIPS

To get Total memory size

Runtime.getRuntime().totalMemory()

To get free memory size

Runtime.getRuntime().freeMemory()

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top