my app saves some data in record store, and simply view it! it works fine in emulator but when i deploy my app to mobile the data is lost. If i save some data in record store while using mobile, the data remains there! but the data saved while using emulator, does not show up when the app is running on mobile.
im using netbeans 6.5, sun wireless toolkit emulator. below is my code:
form1 = new Form("This is RMS DEMO");
Display.getDisplay(this).setCurrent(form1);
rs = RecordStore.openRecordStore("Student1", true);
//Add a record
String rec = "Some text";
byte[] recbyte = rec.getBytes();
rs.addRecord(recbyte, 0, recbyte.length);
//Read records
RecordEnumeration re = rs.enumerateRecords(null, null, false);
while(re.hasNextElement()){
String str = new String(re.nextRecord());
form1.append(str);

Reply With Quote


