File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java Micro Edition and the fly likes During Storing data in RMS,Device gets switch off. Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Mobile » Java Micro Edition
Reply Bookmark "During Storing data in RMS,Device gets switch off." Watch "During Storing data in RMS,Device gets switch off." New topic
Author

During Storing data in RMS,Device gets switch off.

Tukaram Kanade
Ranch Hand

Joined: Feb 18, 2010
Posts: 39

Hi,
During storing the data in device RMS, My device gets swithc off.
How should handle this situation?
Gopinath Karyadath
Ranch Hand

Joined: Oct 14, 2009
Posts: 87
Hi
Whats your Handset model ??
write here some piece of your code .

Regards
gopi@c2info.com
Tukaram Kanade
Ranch Hand

Joined: Feb 18, 2010
Posts: 39
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

Joined: Feb 18, 2010
Posts: 39
Please give the solution for the above question, how this situation i can handle?
Nehel Patel
Greenhorn

Joined: Feb 09, 2010
Posts: 21
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

Joined: Feb 18, 2010
Posts: 39
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

Joined: Oct 14, 2009
Posts: 87
Hi

please find out in which line it gets switched off .
 
 
subject: During Storing data in RMS,Device gets switch off.
 
developer file tools