You Are Here:

Community: Developer Discussion Boards

#1 Old Exclamation RECORD STORE - 2006-03-13, 13:10

Join Date: Jul 2005
Posts: 89
Send a message via Yahoo to jinda007
jinda007's Avatar
jinda007
Offline
Regular Contributor
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?
Reply With Quote

#2 Old Re: RECORD STORE - 2006-03-13, 16:08

Join Date: Mar 2006
Posts: 518
wang_shui
Offline
Super Contributor
Hi jinda,

Which is the phone model that u r testing ur application.


regards,
wang
Reply With Quote

#3 Old Re: RECORD STORE - 2006-03-14, 01:52

Join Date: Jun 2005
Posts: 928
dcrocha's Avatar
dcrocha
Offline
Forum Nokia Expert
You should check you're closing/flushing all streams and the RecordStore itself after writing the data.

Daniel
Reply With Quote

#4 Old Re: RECORD STORE - 2006-03-14, 10:08

Join Date: Jul 2005
Posts: 89
Send a message via Yahoo to jinda007
jinda007's Avatar
jinda007
Offline
Regular Contributor
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?
Reply With Quote

#5 Old Re: RECORD STORE - 2006-03-14, 10:46

Join Date: Mar 2005
Posts: 249
lmtang
Offline
Regular Contributor
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?
Reply With Quote

#6 Old Re: RECORD STORE - 2006-03-14, 13:06

Join Date: Jul 2005
Posts: 89
Send a message via Yahoo to jinda007
jinda007's Avatar
jinda007
Offline
Regular Contributor
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.
Reply With Quote

#7 Old Re: RECORD STORE - 2006-03-15, 08:30

Join Date: Mar 2005
Posts: 249
lmtang
Offline
Regular Contributor
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.
Reply With Quote

#8 Old Re: RECORD STORE - 2006-03-15, 10:15

Join Date: Jul 2005
Posts: 89
Send a message via Yahoo to jinda007
jinda007's Avatar
jinda007
Offline
Regular Contributor
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 With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
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

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia