But i have not written any code that will erase the recordstore.
rs_choiceFCCatFVS = null;
rs_choiceFCCatFVS = RecordStore.openRecordStore(table_name,true,RecordStore.AUTHMODE_ANY,true);
for reading in Midlet A
byte byte_FCCatFVS = "this is my string that i want to put in RMS".getBytes();
finally i am closing .. i am closing only because i thought that this might be the reason that my recordstore is not getting saved.
byte byteFCCstFVS = new byte;
len = rs_choiceFCCatFVS.getRecord(1, byteFCCstFVS, 0);
strFCCatFVS = new String(byteFCCstFVS, 0, len);
its not of much use i think .
this is the code that i am using for reading form Midlet B.
Its pretty much the same but the recordstore is not available.
the above code gives me an error saying that record store not available.
byte byte_Extraceted = new byte;
int len = rs_Main.getRecord(1,byte_Extraceted,0);
strExtractedData = new String(byte_Extraceted,0,len);
form.append("after data is appended");
also i want to ask that is there a difference if we are simply converting a string to byte and putting that byte into the recordstore and using a ByteArray(In|Out)putStream and Data(In|Out)Stream and putting the byte thru that.
Are these two different approaches making a difference when storing the data in RMS.