hi..
how to check d contents of record store data?data which is already exists?
thanks
reshmy
hi..
how to check d contents of record store data?data which is already exists?
thanks
reshmy
hi..
Record Store data is stored in nonvolatile RAM of mobile phone, nd midlet is just fetching data from RAM,
this is one way, but rememember: the API specification is your friend
String[] recordStores = RecordStore.listRecordStores();
try {
for (int i=0;i<recordStores.length;i++)
{
RecordStore rs = RecordStore.openRecordStore(recordStores[i],false);
// do something with the recordstore, such as:
RecordEnumeration re = rs.enumerateRecords(null,null,false);
while(re.hasNextElement())
{
byte[] recordData = re.nextRecord();
// do something with record (if you know what's in it)
}
rs.closeRecordStore();
}
} catch(RecordStoreException rse) {}
however, if you don't know what's in the records you are kind of lost...
Here are some links that would be of some help and to get basic idea on RecordStores.
MIDP Database Programming Using RMS: a Persistent Storage for MIDlets
http://developers.sun.com/techtopics...ist/index.html
Databases and MIDP, Part 1: Understanding the Record Management System
http://developers.sun.com/techtopics...rms/index.html
Regards
Gopal