RecordStore rs = RecordStore.openRecordStore("StoryDataBase1",true);
String data_to_write_in_file = Slug.getString()+"^"+title.getString()+"^"+Body.getString()+"^"+com.editorial.Main.MainImagePath+"^"+com.editorial.Main.MainVideoPath+"^"+com.editorial.Main.MainVoicePath+"$";
byte b[] = rs.getRecord(1);
String str = new String(b,0,b.length);
if(str.equals("")) {
byte bytes[] = data_to_write_in_file.getBytes();
rs.addRecord(bytes,0,bytes.length);
}
else
{
str=str+data_to_write_in_file;
byte[] data = str.getBytes();
rs.setRecord(1, data, 0, data.length);
}
rs.closeRecordStore();
in this i want to check whether rms contains first value or not, otherwise it will enter new value in it??? But i am still little bit confused that whether information going to stay permanent in mobile or not...
An information permanently stored in RMS and We are already discussed regards this. See this sample code and try like this,
Updates
See these links for your reference,