1

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?

gnat
  • 6,213
  • 108
  • 53
  • 73
Ramesh Manly
  • 113
  • 9
  • does your device support [FileConnection (JSR 75)](http://developers.sun.com/mobility/apis/articles/fileconnection/) API? – gnat Feb 13 '12 at 11:23
  • Thanks gnat, FileConnection works. But i want to know how RMS memory is calculated. – Ramesh Manly Feb 13 '12 at 14:40

2 Answers2

0

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.

gnat
  • 6,213
  • 108
  • 53
  • 73
0

To get Total memory size

Runtime.getRuntime().totalMemory()

To get free memory size

Runtime.getRuntime().freeMemory()

Mohamed Nazar
  • 36
  • 1
  • 4