}
}
public static void updateContacts() throws RecordStoreException, IOException
{
RecordStore rs = null;
try{
byte[] data = serial.serializeKVPVector(getRecentContacts());
rs = RecordStore.openRecordStore(userSettingsStore, true);
if(rs.getNumRecords() != 0){
try{
rs.setRecord(2, data, 0, data.length);
}
catch(InvalidRecordIDException ire)
{
rs.addRecord(data, 0, data.length);
}
}
}
catch(RecordStoreException rse)
{
Logger.add("settings", "updateSettings", rse.getMessage());
rse.printStackTrace();
}
finally{
try{
rs.closeRecordStore();
}
catch(Exception e)
{}
}
}