public void saveData(){ String project = projectPath.getString(); String source = sourcePath.getString(); String translate = translatePath.getString(); String midlets = midletType.getString(); String description = descriptionType.getString(); String build = buildPath.getString(); String pointer = Integer.toString(isPointer.getSelectedIndex()); try { recordStore = RecordStore.openRecordStore("settings",true); recordStore.addRecord(project.getBytes(),0,project.getBytes().length); recordStore.addRecord(source.getBytes(),1,source.getBytes().length); recordStore.addRecord(translate.getBytes(),2,translate.getBytes().length); recordStore.addRecord(build.getBytes(),3,build.getBytes().length); recordStore.addRecord(pointer.getBytes(),4,pointer.getBytes().length); recordStore.addRecord(midlets.getBytes(),5,midlets.getBytes().length); recordStore.addRecord(description.getBytes(),6,description.getBytes().length); recordStore.closeRecordStore(); } catch (Exception e){} }