سؤال
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()