I have a simple piece of code that creates a new RecordStore and adds a single record to it. This executes fine, and after running it if I call
it shows the newly created RecordStore.
However, when running this in a Nokia emulator, I find that when I restart the emulator the RecordStore is no longer there. This works fine using Sun's Wireless Toolkit - is there a setting somewhere to enable persistent storage of RecordStores in the emulator (I'm using the 7210 emulator but it's probably the same across them all)? I tried adding the "MIDlet-Data-Size" attribute to the JAD file, but it didn't help.
if you want the emulator to save the RMS, you have to shut your app in the emulator before shutting the emulator itself. For example, at the end of your emulating session, just press the OFF button and once the emulator is in 'telephone mode', close the emulator.
You should find the RMS in the apps directory of the emulator.