| Reply | « Previous Thread | Next Thread » |
|
Hello,
I have noticed that my application(midlet) saved records are lost if i switch off my phone and switch it back on. With this behaviour, i can't seem to be able to save permanent records on the phone. is this a problem that can't be solved? |
|
Hi jinda,
Which is the phone model that u r testing ur application. regards, wang |
|
You should check you're closing/flushing all streams and the RecordStore itself after writing the data.
Daniel |
|
Thnaks rocha & wang,
I actually close the recordstore after writing to it. the thing is, as long as the phone is switched on, the records are intact on the phone. but once i switch it off and switch it on again, the whole records dissapear. the phones are nokia 6630 & sony ericcson k300i. what do you guy think? |
|
Does the database disappear as well meaning you have to create a new database everytime you turn the phone back on or does it remain, but only the records disappear?
|
|
My code is written in such a wya that if there is no recordstore found , it creates one and inserts records.
Now when you restart, it wipes off anything RMS from my application. i have to now re-open a recordstore and insert. |
|
Coming up with a blank... even when i tested the 6630 without mem card, it never sported issues you are experiencing.
Do post some code out here, and where are you closing your RMS Store? PS: If you don't shut the phone down, are ALL RMS records still available to the midlet? Cheers. |
|
Imtag thanks,
yap, if i dont shut the phone down, the RMS records are all available to the midlet but the moment i shut it down, ...zaaaam! they are all gone. so what you think? |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| Record Store vs JDBC. How to store data? | 180ºrevolution | Mobile Java General | 0 | 2004-09-17 16:24 |
| Record Store problem | anandmanish | Mobile Java General | 3 | 2003-09-15 11:30 |
| RMS deleteRecord in 7210 | gaetan.lefevre | Mobile Java General | 12 | 2003-08-28 20:58 |
| 3410 rms record store exception | hadam | Mobile Java General | 1 | 2002-11-07 10:36 |
| Using protocol file:// with object connector | afinistr | Mobile Java General | 2 | 2002-06-24 08:12 |