public void invalidateDateFormat() { String value = DBUtils.getSettValue(ctx.getContentResolver(), SET_DATE_FORMAT); if (value == null) { value = "0"; } DATATE_FORMAT = dataFormatArray[Integer.valueOf(value)]; }
public void setSetings(String key, String value) { ContentResolver cr = ctx.getContentResolver(); String currentValue = DBUtils.getSettValue(cr, key); if (currentValue == null) { DBUtils.createSetValue(cr, key, value); } else { DBUtils.updateSetValue(cr, key, value); } }
public String getLogDefault(int type) { ContentResolver cr = ctx.getContentResolver(); String value = DBUtils.getSettValue(cr, LOG_DEF + type); return value == null ? "" : value; }
public String getSetting(String key, String defaultValue) { ContentResolver cr = ctx.getContentResolver(); String value = DBUtils.getSettValue(cr, key); return value == null ? defaultValue : value; }
public String getSetting(String key) { ContentResolver cr = ctx.getContentResolver(); return DBUtils.getSettValue(cr, key); }