0

I am working on J2ME mobile application using Netbeans IDE 6.9 vesion. My application is working fine means inserts the records into the RMS and I can list the records in the system's default phone.

My problem is, Whenever I run the application it flushes the records and storing again freshly. It means that records are storing temporarily. I want to store records permanently and I've read different answers in Stack Overflow but not clear. Please provide me solution to this problem.

Syed
  • 145
  • 1
  • 1
  • 11
  • Please help me out in resolving this issue. Thanks in advance. – Syed Apr 18 '15 at 11:15
  • Records in RMS are stored permanently - until you uninstall your app. If the records disappears when you close/re-open your app, then something in your code is doing it. – mr_lou Apr 18 '15 at 17:27

1 Answers1

1

If you mean that data in RMS are not persistent between sessions in WTK emulator, then check this: Data in J2ME RecordStore does not persist across sessions - it says that NetBeans uninstalls midlet on each launch, so it clears RMS of course. In this case you can just start emulator from WTK launcher instead (just build jad/jar files in NetBEans and launch jad in WTK emulator).

If you experience this issue on real device, then check that you close RMS properly. If you don't close it, changes may be lost on some devices. See my reply here: J2ME RMS - Best practice for opening/closing record store?

Community
  • 1
  • 1
Mixaz
  • 4,068
  • 1
  • 29
  • 55