return earlyWarnings;
}
public void saveWarnPreferInfo() {
RecordStore recordStore;
DataOutputStream outputStream;
try {
recordStore = RecordStore.openRecordStore("warningPrefer", true);
} catch (RecordStoreException rsc) {
return;
}
ByteArrayOutputStream baos = new ByteArrayOutputStream();
outputStream = new DataOutputStream(baos);
try {
outputStream.writeByte(fajrEWM);
outputStream.writeByte(sunRiseEWM);
outputStream.writeByte(zuhrEWM);
outputStream.writeByte(asrEWM);
outputStream.writeByte(magribEWM);
outputStream.writeByte(ishaEWM);
outputStream.writeByte(fajrWarn);
outputStream.writeByte(sunRiseWarn);
outputStream.writeByte(zuhrWarn);
outputStream.writeByte(asrWarn);
outputStream.writeByte(magribWarn);
outputStream.writeByte(ishaWarn);
byte[] bytes = baos.toByteArray();
if (recordStore.getNumRecords() == 0)
recordStore.addRecord(bytes, 0, bytes.length);
else
recordStore.setRecord(1, bytes, 0, bytes.length);
} catch (Exception exception) {
} finally {
try {outputStream.close();} catch (Exception ex) {}
try {recordStore.closeRecordStore();} catch (Exception ex) {}
}
}