• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

During Storing data in RMS,Device gets switch off.

 
Tukaram Kanade
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hi,
During storing the data in device RMS, My device gets swithc off.
How should handle this situation?
 
Gopinath Karyadath
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
Whats your Handset model ??
write here some piece of your code .

Regards
gopi@c2info.com
 
Tukaram Kanade
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you for reply,
i am using Sony K750i & Sam sung star 3g Handset for testing.
the following code which i have written for storing data in RMS.
"
RecordStore recordStore;
try{
recordStore = RecordStore.openRecordStore("RecordStore Name", true);
byte[] binary = "Test".getBytes();
recordStore.addRecord(binary, 0, binary.length);
catch(RecordStoreFullException exception){
}
"
 
Tukaram Kanade
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please give the solution for the above question, how this situation i can handle?
 
Nehel Patel
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I dont know the exact reason of why device gets switched off, but its good practice to always close RMS after operation. You can refer the below links... try with that...

http://discussion.forum.nokia.com/forum/showthread.php?t=157181

http://www.java2s.com/Code/Java/J2ME/WriteReadExample.htm


 
Tukaram Kanade
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to know the technique, how to handle this situation,During saving the data in RMS, my device will get switch off,Is the RMS will created? Or if it is created then all data will be stored in RMS or not?
 
Gopinath Karyadath
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

please find out in which line it gets switched off .
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic